Commit Graph

433 Commits

Author SHA1 Message Date
jubb
3654d1731c fix: various fixes wrt open groups, config messages, job queueing 2021-03-30 16:23:12 +11:00
Brice-W
0292e70246 fix quote attachment issue 2021-03-30 13:09:40 +11:00
jubb
c3f7425ccd fix: empty messages in open groups now correct properly 2021-03-29 16:40:56 +11:00
jubb
d292c760c4 Merge branch 'refactor-sending' of github.com:hjubb/session-android into origin/refactor-sending 2021-03-29 14:16:58 +11:00
jubb
db553544ec fix: open group fixes for new message receive pipeline 2021-03-29 14:16:49 +11:00
Brice-W
8bc6df5d16 fix multi device attachment issue 2021-03-29 13:52:36 +11:00
Brice-W
d7c03c9d0a group updates fixes 2021-03-26 15:46:37 +11:00
jubb
e3e45292a8 fix: unclosed cursor error message 2021-03-25 16:40:15 +11:00
jubb
196a0205ae refactor: revert expiry to be recipient based instead of message based 2021-03-25 15:12:55 +11:00
Brice-W
ef3bef787d expiration timer handling updated 2021-03-25 14:55:23 +11:00
jubb
bdc086cacf fix: use message's expiry instead of the recipient's 2021-03-25 14:11:58 +11:00
jubb
611b272493 fix: attachments for quotes no longer doubled up 2021-03-24 17:17:01 +11:00
jubb
fad8cd5ba6 fix: changing the way received timestamp handling happens 2021-03-23 15:56:15 +11:00
jubb
a60ec8aaef fix: fix compile error 2021-03-23 11:15:25 +11:00
jubb
7f5f1e4559 Merge remote-tracking branch 'upstream/dev' into origin/refactor-sending
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/database/Storage.kt
2021-03-23 11:13:00 +11:00
jubb
de0f9a26df refactor: remove old pollers from BackgroundPollWorker.kt and deleted unused pollers 2021-03-23 11:12:37 +11:00
Brice-W
1b01d0afd4 clean 2021-03-23 11:03:09 +11:00
Brice-W
68a3c73ab1 clean 2021-03-23 10:59:03 +11:00
Brice-W
5f297835fa Merge branch 'dev' of https://github.com/loki-project/session-android into data-extraction-2 2021-03-23 10:57:13 +11:00
Brice-W
8c7f23a4e3 Merge branch 'dev' of https://github.com/loki-project/session-android into data-extraction 2021-03-23 10:42:30 +11:00
jubb
6f2bad9b59 fix: no duplicate group left messages, more efficient closed group polling 2021-03-23 10:00:51 +11:00
Brice-W
28cecc0236 expiration timer messages generation updated 2021-03-23 09:58:17 +11:00
Brice-W
24b4fb0665 Merge branch 'dev' of https://github.com/loki-project/session-android into data-extraction-2 2021-03-22 15:18:14 +11:00
Brice-W
0578195d61 Merge branch 'dev' of https://github.com/loki-project/session-android into specific-group-updates 2021-03-22 15:12:09 +11:00
jubb
8ee58459dd feat: use new closed and open group pollers 2021-03-19 17:08:31 +11:00
Brice-W
a47113f2c5 revert changes 2021-03-19 16:57:00 +11:00
Brice-W
5dcb3d77d4 revert changes regarding explicit group updates as it's now in a separate PR 2021-03-19 16:39:41 +11:00
Brice-W
ddede475b4 Start of Update messages builder class implementation & usage for Input group updates 2021-03-19 16:25:00 +11:00
jubb
2460afd1a8 feat: call resume message send on app create 2021-03-18 13:36:56 +11:00
jubb
203c0dd44c refactor: fix imports / compile issues from merging dev 2021-03-18 09:52:20 +11:00
jubb
b685846d7e Merge remote-tracking branch 'upstream/dev' into origin/refactor-sending
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/ApplicationContext.java
#	app/src/main/java/org/thoughtcrime/securesms/loki/database/LokiAPIDatabase.kt
#	libsession/src/main/java/org/session/libsession/messaging/messages/control/ClosedGroupControlMessage.kt
#	libsession/src/main/java/org/session/libsession/messaging/messages/control/ExpirationTimerUpdate.kt
#	libsession/src/main/java/org/session/libsession/messaging/opengroups/OpenGroupMessage.kt
#	libsession/src/main/java/org/session/libsession/messaging/sending_receiving/MessageSenderClosedGroup.kt
2021-03-18 09:26:13 +11:00
Ryan ZHAO
80382cc454 minor refactor 2021-03-17 16:09:01 +11:00
Brice-W
2ca8b1acb1 missed case for sending media saved notification 2021-03-17 15:08:09 +11:00
Brice-W
9d82b4b7a9 sending media saved notification 2021-03-17 14:26:29 +11:00
Ryan ZHAO
1e9e580a2f minor refactor 2021-03-17 12:06:44 +11:00
Ryan ZHAO
436598a80b resume pending jobs on app starting 2021-03-17 11:30:03 +11:00
Ryan ZHAO
95646ed04e make error description show in the message detail activity 2021-03-16 16:31:52 +11:00
Brice-W
471e028cf3 implementation of the receiving side of Data Extraction notifications & explicit group updates notifications 2021-03-16 14:56:47 +11:00
jubb
fe3f3d5f88 refactor: remove redundant Companion qualifier 2021-03-15 16:44:44 +11:00
Ryan ZHAO
424aee5fb3 fix possible serialising crash & refactor 2021-03-15 15:43:05 +11:00
jubb
6508873e57 fix: fix the sent / receive timestamps for linking quotes 2021-03-15 15:03:23 +11:00
Ryan ZHAO
d2843b2cef fix removing jobs in database 2021-03-15 14:56:46 +11:00
jubb
817c40b30c refactor: inserting attachments with the messages so that they are linked properly to a mmsID 2021-03-15 13:35:05 +11:00
jubb
323fb75149 fix: adding some message receive functionality 2021-03-12 17:15:33 +11:00
Ryan ZHAO
54da77a89b clean 2021-03-12 15:23:29 +11:00
Ryan ZHAO
d7e525d828 clean 2021-03-12 14:52:59 +11:00
Ryan ZHAO
6659b7a53e clean 2021-03-12 14:23:34 +11:00
Ryan ZHAO
91f9138d62 clean & refactor session protocol encryption 2021-03-12 13:37:16 +11:00
Ryan ZHAO
60f51af295 clean & fix expiration timer setting issue 2021-03-12 11:27:51 +11:00
Ryan ZHAO
e85bf7a45d fix replying from push notification 2021-03-11 15:56:40 +11:00
Ryan ZHAO
2859da01a7 fix duplicated closed group info message 2021-03-11 15:31:14 +11:00
Ryan ZHAO
d7124c3b7e minor refactor 2021-03-11 14:45:08 +11:00
Ryan ZHAO
42c7f440e9 fix quoting message in open groups 2021-03-11 14:37:53 +11:00
Ryan ZHAO
97a9446eae fix profile picture update 2021-03-11 13:56:35 +11:00
Ryan ZHAO
9ddb45dbdc fix blocked contacts can still see typing indicator and set disappearing messages 2021-03-11 10:52:54 +11:00
jubb
ca7202f255 feat: add new message receive pipeline in important places and fix parsing issues 2021-03-09 17:26:29 +11:00
Brice-W
c0e7f05d91 Merge branch 'dev' of https://github.com/loki-project/session-android into data-extraction 2021-03-09 16:29:41 +11:00
Brice-W
6bc832f50a DataExtractionNotification type created and added to proto 2021-03-09 16:27:12 +11:00
Ryan ZHAO
70a7182320 Merge branch 'dev' of https://github.com/oxen-io/session-android into refactor-sending 2021-03-09 14:46:14 +11:00
Ryan ZHAO
1a6da88ce3 clean 2021-03-09 13:54:15 +11:00
jubb
5e34f1235d fix: only set profile avatar ID after download image 2021-03-09 11:56:24 +11:00
jubb
2c615ba83e fix: setup storage api before starting polling 2021-03-09 11:07:26 +11:00
Ryan ZHAO
0a7fecfb52 fix sending link preview 2021-03-09 10:50:02 +11:00
jubb
9136f1ac2d fix: out of order config messages and avatar downloads, use the hex encoding instead of the mnemonic from seed 2021-03-09 10:42:53 +11:00
jubb
6c81580d93 fix: sync timing for multi device partial restore 2021-03-05 16:19:53 +11:00
jubb
cf373f3a93 fix: set current pager item to 0 on scan 2021-03-05 13:39:15 +11:00
Ryan ZHAO
4218073a69 fix quote attachments 2021-03-05 13:31:40 +11:00
jubb
4f74d46b17 fix: revert query to filter empty threads for now 2021-03-05 13:17:08 +11:00
Ryan ZHAO
3b2ea4e95d clean 2021-03-05 11:31:12 +11:00
Ryan ZHAO
2df9d4f27c clean 2021-03-05 11:24:43 +11:00
Ryan ZHAO
2426230064 fix sending profile picture update 2021-03-05 11:13:25 +11:00
Ryan ZHAO
9d4c3bf722 send read receipt using new pipeline 2021-03-05 10:17:34 +11:00
jubb
d9511aa087 fix: crash on backup prefs 2021-03-05 10:16:55 +11:00
jubb
784e217e91 feat: filter out local number empty thread only 2021-03-04 17:17:45 +11:00
Ryan ZHAO
e0ff5a7e7a fix sending expiration update message 2021-03-04 17:14:12 +11:00
jubb
27958491c5 fix: specific empty thread snippet and removing the thread filtering for empty messages 2021-03-04 16:21:25 +11:00
Ryan ZHAO
aa7071ad80 send typing indicator using new pipeline 2021-03-04 15:57:01 +11:00
Ryan ZHAO
70b96fbe73 send configuration message using new sending pipeline 2021-03-04 15:37:42 +11:00
Ryan ZHAO
88ac390495 plug in closed group message sender 2021-03-04 14:54:32 +11:00
jubb
71d2085cc8 fix: use IO lifecycleScope dispatched coroutine 2021-03-04 14:43:02 +11:00
jubb
c1d3a25f26 fix: use profile update time instead of config sync time 2021-03-04 14:37:55 +11:00
jubb
a8a457932d fix: sync configuration in resume on HomeActivity.kt and set sync specific variables appropriately in the registration flow 2021-03-04 14:19:07 +11:00
Ryan ZHAO
c51593a914 fix sending attachments including link previews 2021-03-04 14:03:18 +11:00
jubb
840cc50a31 fix: clear task after linking device to prevent going back and treating PNModeActivity.kt viewing as seeing welcome screen so the fallback notifications will be used and allow users through without selecting PN type 2021-03-04 13:25:02 +11:00
jubb
6614b76411 fix: set RecoveryPhraseRestoreActivity.kt to treat current time as sync time 2021-03-04 10:55:08 +11:00
jubb
0176cfdac1 fix: start polling before registration for fcm if needed 2021-03-04 10:43:37 +11:00
jubb
85c1d38bb4 fix: only update and fetch a new profile pic if it's actually different from our current one 2021-03-03 15:59:28 +11:00
jubb
1ecc87da76 fix: forcing the registration will cancel and restart the FCM task 2021-03-03 15:43:51 +11:00
Ryan ZHAO
9a00906069 WIP debug sending attachments 2021-03-03 15:14:45 +11:00
jubb
1b417362ae fix: fcm task was not cancelable and cannot remove listeners 2021-03-03 15:07:37 +11:00
jubb
d631897a3a fix: send skip event to the display name activity instead of PN mode 2021-03-03 13:48:51 +11:00
jubb
69db4081bc fix: force FCM if needed at end of sign up to trigger registration for user IDs 2021-03-03 12:07:50 +11:00
jubb
ef3e172379 feat: add link device implementation and fixes for updating config syncs and forcing config syncs 2021-03-03 11:33:35 +11:00
Ryan ZHAO
0ea1ed15e7 WIP: make attachment work 2021-03-02 17:22:56 +11:00
Ryan ZHAO
bb7334515c clean 2021-03-02 14:13:52 +11:00
Ryan ZHAO
8acbb3c366 fix send text message to open group 2021-03-02 14:13:12 +11:00
Ryan ZHAO
d9eaedd6ae hook up sending pipeline & clean 2021-03-02 12:24:09 +11:00
jubb
3a09d23337 feat: add contact syncing, UI improvements for profile syncing and conversation threads in the home screen 2021-03-01 17:16:15 +11:00
jubb
11c122e376 Merge branch 'dev' into multi-device 2021-03-01 15:26:10 +11:00
Niels Andriesse
a7428776bf Add loader 2021-02-26 11:40:48 +11:00
Niels Andriesse
1f8b9bfe58 Implement multi device UI 2021-02-26 11:10:45 +11:00
jubb
85336238a7 fix: return early if no profile name (prefs likely invalid state) and ignore contacts whose publicKey fails to parse 2021-02-26 10:08:30 +11:00
Niels Andriesse
f2208f40b8
Merge pull request #462 from hjubb/config_contacts_sync_message
Config contacts sync message
2021-02-25 14:45:55 +11:00
jubb
21dc8d5fca fix: use double encoding for closed group stuff 2021-02-25 14:37:34 +11:00
jubb
9d55d842d2 refactor: formatting in line properly in ContactUtilities.kt 2021-02-25 13:27:45 +11:00
jubb
9a33fe8883 feat: generate serializable Contact info for configuration messages and pass in appropriate list to get current 2021-02-25 12:13:31 +11:00
Niels Andriesse
b6bb9ac902
Merge pull request #461 from RyanRory/profile-picture-update-fix
Fix profile picture update
2021-02-25 10:58:27 +11:00
Niels Andriesse
b2146f645b
Merge pull request #460 from RyanRory/screen-lock-fix
Screen lock fix
2021-02-25 10:58:09 +11:00
Niels Andriesse
631f77425b Minor refactoring 2021-02-25 10:30:56 +11:00
Niels Andriesse
d96552fd9d Minor refactoring 2021-02-25 10:24:00 +11:00
Ryan ZHAO
7a31c60799 fix the profile picture not updated right away 2021-02-25 10:18:38 +11:00
Ryan ZHAO
bc5a1ce396 fix screen lock 2021-02-25 09:35:57 +11:00
Ryan ZHAO
d5343d5462 Merge branch 'dev' of https://github.com/loki-project/session-android into refactor_clean_0 2021-02-24 16:39:04 +11:00
Niels Andriesse
851efb6f6e
Merge pull request #457 from hjubb/config_profile_info
Adding profile information to the config sync messages
2021-02-24 15:57:35 +11:00
Niels Andriesse
c92d04c82e
Merge pull request #456 from hjubb/pn_dont_notify_self_sends
Pn dont notify self sends
2021-02-24 15:57:15 +11:00
jubb
4033830b15 feat: add forcing config message sending when updating profile picture or name 2021-02-24 15:28:48 +11:00
jubb
e4366244fe docs: add todo for handling new configuration messages 2021-02-24 09:37:20 +11:00
jubb
71e48b9024 refactor: move ProfileKeyUtil from app/ to libsession/ module and implement new config message sends 2021-02-23 17:13:57 +11:00
Ryan ZHAO
2bb07c8a38 final cleaning up 2021-02-23 17:00:30 +11:00
Ryan ZHAO
704ab37cad clean up unused utils 2021-02-23 16:35:36 +11:00
Ryan ZHAO
6f002311b8 clean up unused message types 2021-02-23 16:23:45 +11:00
Ryan ZHAO
fec13ba72e clean up unused code 2021-02-23 15:56:42 +11:00
Ryan ZHAO
ff36fbb6a1 further cleaning up on stickers 2021-02-23 15:07:31 +11:00
jubb
b5790ef884 fix: add sentTimestamp to the handling of closed group messages instead of using System.currentTimeMillis() 2021-02-23 15:01:49 +11:00
jubb
f61b556790 fix: message ordering using NORMALIZED_DATE_SENT instead of NORMALIZED_DATE_RECEIVED 2021-02-23 14:41:21 +11:00
Ryan ZHAO
fc62fe3b23 clean up unused loki stuff 2021-02-23 12:11:45 +11:00
Ryan ZHAO
c931155e83 clean up unused dialogs 2021-02-23 12:01:13 +11:00
Ryan ZHAO
6b8228c76d minor fix 2021-02-23 11:59:13 +11:00
Ryan ZHAO
2f57090cfa further clean up on session restoration 2021-02-23 11:56:03 +11:00
Ryan ZHAO
690687064f clean up unused log submit 2021-02-23 11:41:35 +11:00
Ryan ZHAO
bb8e8a4e16 clean up link preview 2021-02-23 11:31:17 +11:00
Ryan ZHAO
12a2061251 clean up jobs 2021-02-23 11:29:07 +11:00
jubb
86383eb4e5 fix: don't notify for MultiDeviceProtocol.kt config messages 2021-02-23 11:14:14 +11:00
Ryan ZHAO
dee7d78acb clean up old groups 2021-02-23 10:30:45 +11:00
jubb
7d7dbd7632 feat: add push notifying in the message sender to prevent self sends 2021-02-23 09:49:19 +11:00
Ryan ZHAO
5db7f0ecb8 clean up signal database 2021-02-23 09:46:56 +11:00
Ryan ZHAO
861b4bf9c9 further clean up unused connections 2021-02-22 16:54:57 +11:00
Ryan ZHAO
fcfaa32073 clean up non-sense code 2021-02-22 16:46:09 +11:00
Ryan ZHAO
c5ab13aadf clean up deprecated message connection 2021-02-22 16:29:48 +11:00
Niels Andriesse
e89f54a0b9
Merge pull request #452 from hjubb/group_explicit_leave_flag
Group explicit leave flag, docs, null fix
2021-02-22 16:21:16 +11:00
jubb
ace0144ffe docs: add documentation around the notifyUser param 2021-02-22 16:11:12 +11:00
jubb
e426d30f67 fix: fix ec send from pending if map contains absent value 2021-02-22 15:46:37 +11:00
Ryan ZHAO
5b15decdd6 further cleaning on signal sticker 2021-02-22 15:07:16 +11:00
Ryan ZHAO
b2225697b4 WIP: clean up unused signal stuff 2021-02-22 14:58:06 +11:00
jubb
5db46325a5 fix: don't delete group as admin if only one user left 2021-02-22 13:51:48 +11:00
jubb
65b36c006c feat: add notifyUser flag to explicitLeave 2021-02-22 13:48:48 +11:00
Ryan ZHAO
c138f20be5 Merge branch 'dev' of https://github.com/oxen-io/session-android into refactor_clean_0 2021-02-22 13:36:37 +11:00
Ryan ZHAO
0ec940ea32 clean up location 2021-02-22 13:30:48 +11:00
Niels Andriesse
d3b8642b18
Merge pull request #450 from hjubb/closed_group_kp_distribution
Closed group kp distribution
2021-02-22 13:25:45 +11:00
jubb
2d93d83610 fix: store group public key as corrected public key 2021-02-22 12:05:00 +11:00