Commit Graph

623 Commits

Author SHA1 Message Date
ryanzhao dbcc158337 fix unsend bugs 2021-10-27 13:51:19 +11:00
ryanzhao ecf92ceeea fix PN sound settings not applying to remote PNs 2021-10-19 15:11:47 +11:00
ryanzhao 99d2dd42d5 fix first message not being functional issue 2021-10-12 09:27:09 +11:00
ryanzhao 4a21e87625 minor fix on conversation ordering 2021-10-07 10:57:24 +11:00
ryanzhao f51651ce8e minor fix on conversation ordering 2021-10-05 15:09:11 +11:00
ryanzhao b315510ec2 Revert "improve attachment image quality"
This reverts commit ad4e65e6e1.
2021-10-04 15:37:42 +11:00
ryanzhao ad4e65e6e1 improve attachment image quality 2021-10-04 14:57:07 +11:00
ryanzhao 0b5d6ae4b0 fix disappearing messages for sync messages 2021-10-04 14:39:28 +11:00
ryanzhao 204fe789ed fix sync message in open group won't be marked as sent 2021-10-04 11:56:05 +11:00
ryanzhao ceb88f3d00 prevent disappearing message affecting the order of conversations 2021-10-01 16:29:02 +10:00
ryanzhao 49688c0a2d potentially fix a crash when setting nickname from null 2021-10-01 15:06:33 +10:00
ryanzhao b7c6eafa87 fix notification preview type nested transaction crash 2021-09-30 14:24:04 +10:00
ryanzhao cebda588e8 fix remove job id concurrent issue 2021-09-30 11:20:00 +10:00
ryanzhao e91469fe0e fix nested transaction crash 2021-09-30 09:30:30 +10:00
ryanzhao 3a84593de9 fix profile key crash & typo 2021-09-30 09:20:20 +10:00
ryanzhao bfc1e96c9d Merge branch 'sync-read' into bug-fixes 2021-09-16 14:56:04 +10:00
ryanzhao 75a4dcee79 clean 2021-09-16 10:33:54 +10:00
ryanzhao 6f2dd14ce6 clean 2021-09-16 10:32:03 +10:00
ryanzhao b3db1ac1ed cancel notification if the message is marked as read 2021-09-16 10:20:40 +10:00
ryanzhao d4067eb39d mark previous messages as read if there is a sync message 2021-09-16 10:20:18 +10:00
ryanzhao 50465c04bf fix a crash where the configuration message contacts info may contain invalid profile key 2021-09-15 16:43:49 +10:00
ryanzhao fde5083de8 improve link preview images 2021-09-15 14:02:52 +10:00
ryanzhao dcd3997a78 fix an issue where untrusted contact's media message will never be marked as read 2021-09-14 15:10:01 +10:00
ryanzhao 140676fdaf fix expiration sync messages show display name rather than "You" 2021-09-14 14:32:39 +10:00
ryanzhao 3c4a19e30d fix nested transaction crash 2021-09-13 14:37:10 +10:00
ryanzhao f08d0470e5 expire sync messages if needed 2021-09-10 13:48:07 +10:00
RyanZhao fbd30ca8e5
Merge pull request #500 from RyanRory/improvements
Improvements
2021-09-02 09:02:24 +10:00
ryanzhao 42d4e07724 add @ symbol when there is mention in unread messages 2021-08-30 13:22:40 +10:00
ryanzhao e045808070 Revert "WIP: download attachments in NSE"
This reverts commit 6fd5bbeab1.
2021-08-30 10:00:19 +10:00
ryanzhao 454003c027 Revert "WIP: make the attachment download work in NSE"
This reverts commit 7295c14e17.
2021-08-30 10:00:04 +10:00
ryanzhao 7295c14e17 WIP: make the attachment download work in NSE 2021-08-27 13:32:31 +10:00
ryanzhao 6fd5bbeab1 WIP: download attachments in NSE 2021-08-26 10:49:55 +10:00
ryanzhao 70e38e11d8 clean attachment download job 2021-08-25 16:39:30 +10:00
ryanzhao b7289e72a3 add accessibility to attachment buttons 2021-08-25 12:18:06 +10:00
ryanzhao d6d041a74f fix closed group threading issue 2021-08-24 14:58:27 +10:00
ryanzhao d319840c04 clean unused server timestamp 2021-08-23 11:15:05 +10:00
ryanzhao da335a8401 clean 2021-08-23 11:10:45 +10:00
ryanzhao 132ff0416f set server timestamp as open group message's sent timestamp 2021-08-23 11:10:22 +10:00
ryanzhao 7a354fe220 potentially fix the closed group not receiving messages issue 2021-08-20 10:01:25 +10:00
ryanzhao 1822c7df16 fix duplicated messages sent in closed groups 2021-08-18 12:09:05 +10:00
Niels Andriesse 45042a1acf Fix typos 2021-08-10 11:17:04 +10:00
ryanzhao 0ed748074b remove deleted message for linked devices 2021-08-09 17:07:06 +10:00
ryanzhao 2e8e931551 minor refactor 2021-08-09 16:52:42 +10:00
ryanzhao 03fde557fc Merge branch 'dev' of https://github.com/oxen-io/session-ios into unsend-message 2021-08-09 15:08:11 +10:00
Niels Andriesse 4f9d77017a Fix message updating race condition 2021-08-09 14:54:16 +10:00
ryanzhao 940e09c25b handle canceling push notification 2021-08-09 12:30:09 +10:00
Ryan Zhao 7e640fb6ac Don't show deleted message in home screen 2021-08-05 14:08:13 +10:00
Ryan Zhao 6e45aed71b Merge branch 'dev' of https://github.com/oxen-io/session-ios into unsend-message 2021-08-05 13:34:17 +10:00
Ryan Zhao eaab6ee22d deleted message UI in conversation screen 2021-08-05 13:34:07 +10:00
Niels Andriesse e311d2878f Fix message status indicator bug 2021-08-05 10:47:15 +10:00
Niels Andriesse 50d17be43b Fix animation glitch 2021-08-05 10:11:20 +10:00
Niels Andriesse b8c4e6aa93 Avoid unnecessary conversation screen updates 2021-08-05 10:02:52 +10:00
ryanzhao 00fd764042 delete the message on storage server after receiving an unsend request 2021-08-04 15:11:49 +10:00
ryanzhao 9953451767 add comment 2021-08-04 14:53:16 +10:00
ryanzhao 8d53a775d2 Revert "delete real message and sync message together"
This reverts commit cc17a952e0.
2021-08-04 14:48:32 +10:00
ryanzhao cc17a952e0 delete real message and sync message together 2021-08-04 11:49:21 +10:00
Niels Andriesse 1b0a12d7c0 Don't unnecessarily unsubscribe from closed group PNs
We don't need to do this anymore as we now have the ability to ignore PNs in the notification service extension
2021-08-03 16:21:30 +10:00
Niels Andriesse 7f0b87a2b2 Avoid unnecessary conversation screen updates 2021-08-03 15:36:54 +10:00
Ryan Zhao 80bf62df90 fix nested transaction crash on setting notification identifier 2021-08-03 10:42:09 +10:00
Ryan Zhao 885e9296d1 Merge branch 'dev' of https://github.com/oxen-io/session-ios into unsend-message 2021-08-03 10:26:30 +10:00
Niels Andriesse e8d8377a04 Fix threading bug 2021-08-03 09:58:50 +10:00
Ryan Zhao 08360273e6 save server hash for message receive jobs 2021-08-02 15:39:10 +10:00
Ryan Zhao 050a2ec534 store server hash value for visible messages 2021-08-02 15:24:38 +10:00
Ryan Zhao c68350f3d8 store hash value for outgoing messages 2021-08-02 14:49:34 +10:00
Ryan Zhao e2a0578770 cancel local notifications for unsend requests 2021-08-02 14:03:46 +10:00
Ryan Zhao b827b9e1ba make it work for multi device 2021-08-02 10:32:47 +10:00
Ryan Zhao 94c1879263 fix unsend request receive handler 2021-07-30 17:04:56 +10:00
Ryan Zhao 6aa865e7b7 delete locally and send unsend request 2021-07-30 16:51:43 +10:00
Ryan Zhao 83252650b1 unsend request handler 2021-07-30 14:21:43 +10:00
Ryan Zhao dff99cf0fc add unsend request proto 2021-07-30 14:21:30 +10:00
Ryan Zhao b31b9166ad Merge branch 'dev' of https://github.com/oxen-io/session-ios into fine-grained-notification-settings-2 2021-07-30 09:45:37 +10:00
Ryan Zhao 423feae426 add notify reply and clean 2021-07-30 09:43:05 +10:00
Niels Andriesse 8f29010e89 Poll for closed group messages more frequently 2021-07-30 09:23:56 +10:00
Niels Andriesse 483ed4792f Fix localization & clean 2021-07-29 10:14:06 +10:00
ryanzhao b0e03f5dfd update subtitle status in conversation screen instantly 2021-07-26 16:16:14 +10:00
ryanzhao f0d2826403 add thread flag for only notifying mentiongs 2021-07-26 15:42:45 +10:00
Niels Andriesse 8a29469eb5 Handle incorrect clock setting 2021-07-23 13:42:13 +10:00
Niels Andriesse 6bf25e28f7 Debug 2021-07-23 09:00:28 +10:00
Niels Andriesse 9d605c03f0 Debug 2021-07-22 15:23:35 +10:00
Niels Andriesse ca862096b4 Rename profilePictureEncryptionKey → profileEncryptionKey 2021-07-22 14:52:10 +10:00
Niels Andriesse 519ffa4405 Fully switch to the new contact API
This should improve performance significantly as it avoids many unnecessary sync transactions. It also makes the code more readable.
2021-07-22 14:41:27 +10:00
Niels Andriesse 44288c45e9 Fix auto scroll to bottom bug 2021-07-22 11:10:30 +10:00
ryanzhao 69dea75486 potentially fix the conversation stuck at unread 2021-07-20 14:06:23 +10:00
Niels Andriesse 1d1d63c979 Don't auto resubscribe to PNs for muted closed groups 2021-07-19 13:22:09 +10:00
Niels Andriesse 11df899db3 Don't use jobs for open group polling
It's not necessary because we can always get the messages again from the server, and it helps with performance
2021-07-15 14:16:33 +10:00
Niels Andriesse e84fc1aa04 Include destination info in error messages 2021-07-15 09:47:03 +10:00
Niels Andriesse aae11b1c28 Disable PNs for muted closed groups 2021-07-13 16:09:28 +10:00
Niels Andriesse ba60879343 Add support for new ban and delete all endpoint 2021-07-13 14:33:42 +10:00
Niels Andriesse e796f6bacd Don't retry message send jobs when rate limited 2021-07-13 09:46:41 +10:00
Niels Andriesse 2928a8f66c Don't unnecessarily retry downloads for expired attachments 2021-07-13 09:46:27 +10:00
Niels Andriesse 6bc9b21cde Fix handling of failed messages in open groups
Failures wouldn't show up because `recipientIdentifiers` was empty for open groups
2021-07-13 09:46:06 +10:00
Niels Andriesse f0295fb469 Fix crash 2021-07-12 09:19:59 +10:00
Niels Andriesse 356dc0cc4f Clean up indentation 2021-07-07 15:09:09 +10:00
Brice-W 2f0fe36905 add expiration timer to configuration message 2021-06-21 14:21:34 +10:00
Brice-W a840d61f4e delete obsolete code 2021-06-21 14:21:11 +10:00
Brice-W c1bd21c3f0 proto updated 2021-06-21 10:51:07 +10:00
Niels Andriesse 7bb7edd3c0 Further cleanup 2021-06-11 11:11:16 +10:00
Niels Andriesse b090227a2d Fix potential crash & apply code convention 2021-06-11 11:01:08 +10:00
Brice-W 1f9cd92bce set expiration timer for new group members 2021-06-10 11:51:38 +10:00
Brice-W 0b5c1a68ee proto update 2021-06-09 15:37:24 +10:00
nielsandriesse 1041f991fd Fix unnecessary map calls 2021-06-04 16:23:59 +10:00
Brice-W 546f91ce65 Merge branch 'dev' of https://github.com/oxen-io/session-ios into closed-group-fix 2021-06-04 15:29:56 +10:00
Brice-W 49c1de8387 clean 2021-06-04 15:29:34 +10:00
Brice-W dbcf19529b fix 2021-06-04 14:01:23 +10:00
Brice-W 9e790986f6 fix closed group corner cases 2021-06-04 11:50:24 +10:00
nielsandriesse 86c2c39425 Fix background polling crash 2021-06-04 08:16:54 +10:00
nielsandriesse e24fca7b37 Fix job duplication bug
This could cause attachments not to download on the receiving side, and potentially also cause duplicate push notifications to be sent
2021-06-03 14:14:18 +10:00
nielsandriesse f588b6b611 Fix incorrect protobuf value 2021-06-01 15:05:16 +10:00
nielsandriesse 0d9f5388da Prepare for OGS timestamp handling changes 2021-05-31 11:28:21 +10:00
nielsandriesse 1b4cfdb22f Add get Session version file server endpoint 2021-05-28 14:28:59 +10:00
nielsandriesse bf9d860214 Batch thread updates 2021-05-28 09:47:05 +10:00
nielsandriesse ff1d2d2f28 Remove (seemingly) unnecessary hack 2021-05-28 09:24:03 +10:00
nielsandriesse e72c6d4cbd Mark .noThread error as non-retryable 2021-05-28 09:09:56 +10:00
Niels Andriesse 601062c9ef Fix timeSinceLastOpen usage 2021-05-24 16:39:18 +10:00
Brice-W 51ba97827d open group polling limit implementation 2021-05-24 16:00:42 +10:00
Niels Andriesse aa3a18fa7e Don't notify for closed group control messages
This addresses an issue where:

• someone would create a closed group
• on other peoples' devices this control message would be received through a background poll or a push notification
• the received message timestamps table would be updated
• processing wouldn't be finished (during a background poll or while handling a push notification the system can cut you off at any time)
• some of the added users don't see the new closed group because when they open the app and get the control message from their swarm it's considered a duplicate and isn't processed again
2021-05-24 08:57:31 +10:00
Niels Andriesse 3fda8daec9 Merge branch 'dev' into cleanup 2021-05-20 16:25:59 +10:00
Niels Andriesse 61dd768e5c Minor refactoring 2021-05-20 16:22:11 +10:00
Niels Andriesse 74ba177250
Merge pull request #411 from RyanRory/expiration-timer-fix
Fix Expiration Timer Issues
2021-05-20 16:20:58 +10:00
Niels Andriesse c84a942478 Fix push notification handling
This was crashing every time the extension started
2021-05-20 13:57:42 +10:00
Niels Andriesse 20e0103d2d Switch to dedicated server 2021-05-20 10:53:56 +10:00
nielsandriesse c36cf1a36d Hopefully fix closed group handling bug 2021-05-19 08:42:58 +10:00
Ryan ZHAO d7a7abc11e start expiration timer after attachments downloaded 2021-05-14 15:38:06 +10:00
Niels Andriesse cdf27a631a Fix profile picture handling 2021-05-14 10:55:17 +10:00
Niels Andriesse 38a7c93967 Fix profile picture handling 2021-05-13 16:11:21 +10:00
nielsandriesse 73eeff3ea1 Debug 2021-05-12 10:40:42 +10:00
nielsandriesse 17688a66e6 Make closed group polling variable rate 2021-05-12 10:33:29 +10:00
Niels Andriesse 16a01ccc00
Merge pull request #405 from oxen-io/open-group-invitations-2
Open Group Invitations
2021-05-07 15:47:55 +10:00
Ryan ZHAO 539b13d189 fix inconsistent voice message durations 2021-05-07 15:22:48 +10:00
Niels Andriesse e4d1925436 Show confirmation dialog 2021-05-07 15:18:57 +10:00
Niels Andriesse f3fef34259 Implement proto conversion 2021-05-07 14:53:28 +10:00
Niels Andriesse 0153e1cefd Update protos 2021-05-07 14:46:53 +10:00
Niels Andriesse e2715d1ee9 Implement sending logic 2021-05-07 14:08:52 +10:00
Niels Andriesse bd04775cbf Implement open group invitations UI 2021-05-07 13:10:21 +10:00
Niels Andriesse e3671291c5 Merge branch 'dev' into cleanup 2021-05-07 13:06:48 +10:00
Niels Andriesse f893acfe3b Make attachment padding consistent cross-platform 2021-05-07 09:50:45 +10:00
Niels Andriesse 7e60d3c218 Merge branch 'dev' into cleanup 2021-05-06 09:24:42 +10:00
Niels Andriesse ad801d4f33 Fix threading 2021-05-06 09:23:47 +10:00
nielsandriesse ed047ac512 More cleanup 2021-05-05 14:50:46 +10:00
nielsandriesse 06f795169b Merge branch 'dev' into cleanup 2021-05-05 14:10:19 +10:00
nielsandriesse 964cb8b326 Fix new deletion method 2021-05-05 13:49:24 +10:00
nielsandriesse 47daf16d5c Merge branch 'dev' into deletion-handling 2021-05-05 13:30:59 +10:00
nielsandriesse 0c864454aa Remove duplicate message server ID tracking 2021-05-05 13:30:37 +10:00
nielsandriesse b3a6d90a1b Add missing strings 2021-05-05 13:18:45 +10:00
nielsandriesse a098ba7125 Remove unused code 2021-05-05 12:13:48 +10:00
nielsandriesse 8512691f2b Clean 2021-05-05 10:57:06 +10:00
nielsandriesse 05d688a6d3 Add missing enum case 2021-05-05 10:53:44 +10:00
nielsandriesse 955e3abdad Clean up group update handling 2021-05-05 10:38:09 +10:00
nielsandriesse 49f3b9f7db Rename contactIdentifier → contactSessionID 2021-05-05 10:00:39 +10:00
nielsandriesse 21acdfc835 Clean up thread model 2021-05-05 09:53:18 +10:00