Commit Graph

399 Commits

Author SHA1 Message Date
jubb
bdc086cacf fix: use message's expiry instead of the recipient's 2021-03-25 14:11:58 +11:00
jubb
53c966b634 fix: race in receive messages processing from restore 2021-03-25 13:25:07 +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
1c1ce1424b fix: replace elvis on optional proto object with protobuf has flag check 2021-03-23 11:39:14 +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
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
0bea7fa56d clean 2021-03-23 10:43:32 +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
0fa62d1b2a fix: only set syncTarget if it's included and not empty 2021-03-23 10:35:47 +11:00
Brice-W
e378d11692 few little fixes 2021-03-23 10:11:10 +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
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
333533785b fix crash on attachment send failure 2021-03-17 16:22:43 +11:00
Ryan ZHAO
26b60c0397 Merge branch 'dev' of https://github.com/loki-project/session-android into refactor-sending-error-handling 2021-03-17 14:36:35 +11:00
jubb
32f9675fe4 fix: dynamic output buffer size, reusing the byte array buffer and only copying the written part to persistence 2021-03-17 13:55:30 +11:00
Ryan ZHAO
39aef68b04 refactor precondition failure error 2021-03-17 10:48:20 +11:00
Ryan ZHAO
778a0d083f Merge branch 'dev' of https://github.com/oxen-io/session-android into refactor-sending-error-handling 2021-03-16 16:31:58 +11:00
Ryan ZHAO
95646ed04e make error description show in the message detail activity 2021-03-16 16:31:52 +11:00
jubb
7e509a1cf0 fix: pad the plaintext before encryption 2021-03-16 15:49:31 +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
dd8a0cdc2e fix: use queue in the retry timer 2021-03-16 09:44:55 +11:00
jubb
b81d9b5e3a fix: matching up the remove 05 prefixing to be consistent through the new pipeline call sites 2021-03-15 16:44:20 +11:00
Brice-W
1daa2a336f Merge branch 'dev' of https://github.com/loki-project/session-android into data-extraction-2 2021-03-15 16:27:08 +11:00
Ryan ZHAO
3cb20c9250 minor fix 2021-03-15 16:14:49 +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
b786f5894c fix configuration message deserialising crash 2021-03-15 14:56:05 +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
Ryan ZHAO
4628f27d9f fix error handling 2021-03-15 13:14:45 +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
91f9138d62 clean & refactor session protocol encryption 2021-03-12 13:37:16 +11:00
Ryan ZHAO
0e049469aa minor refactor on closed group encryption key pair sending 2021-03-12 10:21:09 +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
b490ed0c22 fix sending attachments(image) in open groups 2021-03-11 14:05:48 +11:00
Ryan ZHAO
a3e3f0047a fix closed group message sending & expiration mistakenly disabled 2021-03-11 10:23:16 +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
d85ad12352 fix sending link preview to open group 2021-03-09 16:15:39 +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
82b8883bb1 fix sending quote 2021-03-09 11:16:43 +11:00
Ryan ZHAO
0a7fecfb52 fix sending link preview 2021-03-09 10:50:02 +11:00
Ryan ZHAO
4218073a69 fix quote attachments 2021-03-05 13:31:40 +11:00
Ryan ZHAO
9d4c3bf722 send read receipt using new pipeline 2021-03-05 10:17:34 +11:00
Ryan ZHAO
d84b593da2 fix expiration timer animation 2021-03-05 09:53:58 +11:00
Ryan ZHAO
e0ff5a7e7a fix sending expiration update message 2021-03-04 17:14:12 +11:00
Ryan ZHAO
aa7071ad80 send typing indicator using new pipeline 2021-03-04 15:57:01 +11:00
Ryan ZHAO
a1d1b864e6 fix closed group updating 2021-03-04 15:16:47 +11:00
Ryan ZHAO
88ac390495 plug in closed group message sender 2021-03-04 14:54:32 +11:00
Ryan ZHAO
c51593a914 fix sending attachments including link previews 2021-03-04 14:03:18 +11:00
Ryan ZHAO
0fcef2d542 add padding for future & clean 2021-03-04 11:36:19 +11:00
Ryan ZHAO
152d403e2b fix send attachments to open groups 2021-03-03 15:58:36 +11:00
Ryan ZHAO
9a00906069 WIP debug sending attachments 2021-03-03 15:14:45 +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
4a9ac91e5f fix send text message to closed group 2021-03-02 14:30:16 +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
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
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
Ryan ZHAO
6c32815266 clean 2021-02-25 09:45:36 +11:00
Niels Andriesse
6f76f0046a
Merge pull request #458 from hjubb/config_profile_info
fix: orEmpty on profilePicture to prevent NPE for profile info
2021-02-24 16:41:46 +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
jubb
ea857110bf fix: orEmpty on profilePicture to prevent NPE 2021-02-24 16:32:01 +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
ff36fbb6a1 further cleaning up on stickers 2021-02-23 15:07:31 +11:00
Ryan ZHAO
8c016b3802 clean up signal service protocols 2021-02-22 11:29:22 +11:00
Ryan ZHAO
19a829d011 WIP: clean up signal protocols (stickers) 2021-02-22 10:06:40 +11:00
Ryan ZHAO
04f140ee09 WIP: clean up signal service protos 2021-02-22 09:31:29 +11:00
Ryan ZHAO
b34809f4d5 WIP: clean up signal protocol 2021-02-19 16:06:10 +11:00
Ryan ZHAO
bbd067873a WIP: clean up signal protocol 2021-02-19 11:35:06 +11:00
Ryan ZHAO
1a907fcf54 WIP: clean up signal protocol 2021-02-18 17:05:34 +11:00
Ryan ZHAO
0d2f5e0cde further cleaning on V1 multi device 2021-02-18 15:12:30 +11:00
Ryan ZHAO
9d0831b874 remove shared sender keys 2021-02-18 14:14:05 +11:00
Ryan ZHAO
c69a8bc15f clean 2021-02-17 16:42:53 +11:00
Ryan ZHAO
64352707d0 clean up close group update message in new message pipeline 2021-02-17 16:31:43 +11:00
Ryan ZHAO
20ec889730 clean up V1 closed group 2021-02-17 16:09:36 +11:00
Ryan ZHAO
3285975b1a WIP: clean up V1 multi device 2021-02-17 10:51:02 +11:00
Ryan ZHAO
b517555a45 timestamp & duplicated message 2021-02-16 15:24:21 +11:00
Ryan ZHAO
e14b5b9f33 minor fix 2021-02-16 11:48:25 +11:00
Ryan ZHAO
c6084b0172 replace group create at timestamp with formation timestamp 2021-02-16 11:14:27 +11:00
Ryan ZHAO
f7463caf10 clean 2021-02-16 10:37:48 +11:00
Ryan ZHAO
6dfa882803 minor refactoring 2021-02-16 10:31:26 +11:00
Ryan ZHAO
f6455253a0 send latest encryption key pair 2021-02-16 10:28:24 +11:00
Ryan ZHAO
a7764ed5c9 Merge branch 'testing_multi_merge' of https://github.com/hjubb/session-android into multi_device_refactor 2021-02-16 09:26:55 +11:00
Ryan ZHAO
a5447e77e7 WIP closed group fix 2021-02-11 16:57:43 +11:00
Ryan ZHAO
5dadb89225 WIP: received message timestamps 2021-02-11 16:09:59 +11:00
Ryan ZHAO
5cbbf92fb9 sync target of multi device for refactored sending & receiving pipeline 2021-02-11 15:00:27 +11:00
jubb
5a892b2932 Merge remote-tracking branch 'origin/add_sync_target' into testing_multi_merge
# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/notifications/SingleRecipientNotificationBuilder.java
#	libsignal/src/main/java/org/session/libsignal/service/api/SignalServiceMessageSender.java
2021-02-11 14:12:22 +11:00
jubb
fd0596f9ea fix: closed groups now propagate properly without self-sends 2021-02-10 17:57:08 +11:00
ryanzhao
4156c10feb Implement multi device & closed group protocol in refactored sending & receiving pipeline 2021-02-10 16:48:03 +11:00
ryanzhao
9cf292589b only handle the first configuration message 2021-02-10 09:37:20 +11:00
jubb
e62eb819c9 refactor: GroupUtil functions to be JvmStatic 2021-02-09 17:04:56 +11:00
Ryan ZHAO
6b45cc683e only handle the first configuration message 2021-02-09 17:00:17 +11:00
Ryan ZHAO
c2836cc654 add sync target to visible message 2021-02-09 16:49:22 +11:00
Ryan ZHAO
fb2757588d refactor: message sender + closed group 2021-02-09 14:45:22 +11:00
Ryan ZHAO
4cfa5e9f3b refactor: message sender + closed group 2021-02-09 13:55:01 +11:00
Ryan ZHAO
c32c58eee7 add open group through configuration message 2021-02-09 13:16:33 +11:00
Ryan ZHAO
5ceaf87ba9 implement closed group v2 handling and configuration message handling in refactored message receiving pipeline 2021-02-09 11:45:38 +11:00
jubb
57d532f4b8 feat: add self sending syncTarget messages 2021-02-08 16:57:12 +11:00
Ryan ZHAO
05da743ea2 configuration message handling 2021-02-08 16:44:26 +11:00
Ryan ZHAO
03ff1d1941 configuration message 2021-02-05 16:35:15 +11:00
jubb
ba5431b806 fix: compile errors from moving keypair out of ClosedGroupsProtocolV2 2021-02-05 10:27:24 +11:00
Ryan ZHAO
6c857e203b clean 2021-02-04 10:28:51 +11:00
ryanzhao
075e265a46 clean dynamic language 2021-02-03 14:04:27 +11:00
ryanzhao
93df9641c4 clean 2021-02-03 12:44:52 +11:00
ryanzhao
307da3b2be clean logging 2021-02-03 12:22:40 +11:00
Ryan ZHAO
0a952bcb85 sync dev 2021-02-02 17:05:21 +11:00
Ryan ZHAO
1e93d4651c clean 2021-02-02 15:40:43 +11:00
Ryan ZHAO
94913a334c clean 2021-02-02 15:10:23 +11:00
Ryan ZHAO
c8149209a1 clean & minor fix 2021-02-01 17:00:32 +11:00
Ryan ZHAO
2db567144d clean 2021-02-01 15:01:06 +11:00
Ryan ZHAO
c7af1cabe3 clean 2021-02-01 12:10:48 +11:00
Ryan ZHAO
5cb3a79a27 clean 2021-02-01 11:35:53 +11:00
Ryan ZHAO
9bc360f047 clean 2021-02-01 10:25:19 +11:00
Ryan ZHAO
190badd9c0 sync with dev 2021-02-01 09:39:14 +11:00
Ryan ZHAO
59ae46b300 recover pn 2021-01-29 17:03:58 +11:00
Ryan ZHAO
543019f93c clean 2021-01-29 16:35:47 +11:00
Brice
19d48f5b06 closed group control message updated 2021-01-29 13:35:51 +11:00
Brice
49f3e0cfca implementation of persistAttachments + refactoring 2021-01-29 11:16:53 +11:00
Ryan ZHAO
ebad701378 Merge branch 'refactor' of https://github.com/RyanRory/loki-messenger-android into refactor 2021-01-29 11:08:55 +11:00
Ryan ZHAO
3b50b8f40b fix closed groups & clean 2021-01-29 11:08:48 +11:00
Brice
5f0a5c5db6 Session jobs database implementation 2021-01-28 15:24:27 +11:00
Ryan ZHAO
13f94c2cfd sync dev 2021-01-27 15:54:12 +11:00
Ryan ZHAO
9eacdd7b3e sync update to libsession & clean 2021-01-27 10:54:25 +11:00
Ryan ZHAO
ef2380da76 make things work 2021-01-25 16:58:04 +11:00
Ryan ZHAO
8c22514b73 open group poller + loki user profile 2021-01-25 15:36:18 +11:00
Ryan ZHAO
e6fd57fa58 Merge branch 'refactor' of https://github.com/RyanRory/loki-messenger-android into refactor 2021-01-22 16:15:21 +11:00
Ryan ZHAO
2e3f50f8aa fix group encoded id 2021-01-22 16:15:13 +11:00
Brice
74e2fb6490 JobData class removed 2021-01-22 15:19:41 +11:00
Brice
787a635d0a Data & ParcelableUtil classes moved to libsession 2021-01-22 15:16:50 +11:00
Brice
7cc7cc60c7 serialization functions added to Job classes 2021-01-22 13:30:00 +11:00
Ryan ZHAO
d4781e64a3 clean group util 2021-01-22 10:33:19 +11:00
Ryan ZHAO
6fa2c308b5 WIP fix crashes 2021-01-21 17:04:56 +11:00
Ryan ZHAO
9856814904 WIP clean 2021-01-21 16:12:05 +11:00
Ryan ZHAO
246eb62958 message sender failed with error 2021-01-20 16:37:02 +11:00
Ryan ZHAO
f3c3483cde complete message sender 2021-01-20 16:29:52 +11:00
Ryan ZHAO
a9df948375 message sender prep for attachments 2021-01-20 11:18:22 +11:00
Ryan ZHAO
70456d0fd9 closed group encryption key pair 2021-01-20 11:18:00 +11:00
Ryan ZHAO
9df6bb11d1 WIP complete storage protocol 2021-01-20 10:04:14 +11:00
Ryan ZHAO
39858cb0c8 persist message 2021-01-19 17:06:02 +11:00
Brice
845ea16415 impl of missing methods in DatabaseAttachmentProvider 2021-01-19 11:39:45 +11:00
Ryan ZHAO
883c71331b WIP clean & make things compile 2021-01-19 10:48:02 +11:00
Ryan ZHAO
31d4deb354 WIP clean & make things compile 2021-01-19 09:12:44 +11:00
Ryan ZHAO
f7d898d5e3 WIP make things compile 2021-01-18 15:37:23 +11:00
Ryan ZHAO
2d239541b9 WIP make things compile 2021-01-18 14:58:11 +11:00
Brice
4fc0c3dddc quick code refactoring 2021-01-15 17:08:08 +11:00
Ryan ZHAO
7cdffc1801 Merge branch 'refactor' of https://github.com/RyanRory/loki-messenger-android into refactor 2021-01-15 16:52:09 +11:00
Ryan ZHAO
1f96ab1cf5 WIP clean 2021-01-15 16:51:53 +11:00
Brice
b11ef9da04 Merge branch 'refactor' of https://github.com/RyanRory/loki-messenger-android into refactor 2021-01-15 16:19:29 +11:00
Brice
3e04ebc286 ClosedGroupUpdateV2 class added 2021-01-15 16:18:55 +11:00
Ryan ZHAO
6cd00aec77 WIP clean 2021-01-15 15:36:30 +11:00
Ryan ZHAO
a5e37fd171 WIP make things compile 2021-01-14 16:33:03 +11:00
Ryan ZHAO
fcb71961d6 WIP make things compile 2021-01-14 13:54:21 +11:00
Ryan ZHAO
8e8abcbe81 Merge branch 'refactor' of https://github.com/RyanRory/loki-messenger-android into refactor 2021-01-14 13:28:25 +11:00
Ryan ZHAO
58ad4aef33 make thing compile 2021-01-14 13:26:53 +11:00
Brice
3357672516 MessaageSender: use of session protocol for closed groups 2021-01-14 13:20:18 +11:00
Brice
6f22c3d6e3 MessageReceiver synced with iOS 2021-01-14 11:42:26 +11:00
Ryan ZHAO
7ca8456383 WIP clean 2021-01-14 10:28:07 +11:00
Ryan ZHAO
709727197c Merge branch 'refactor' of https://github.com/RyanRory/loki-messenger-android into refactor 2021-01-13 17:15:17 +11:00
Ryan ZHAO
74a9754f48 implement interfaces 2021-01-13 17:11:30 +11:00
Ryan ZHAO
cb5ee74a43 WIP notification 2021-01-12 09:58:58 +11:00
Ryan ZHAO
d5c84b3c60 message receiving handling 2021-01-12 09:58:38 +11:00
Brice
f420ec51e2 Merge branch 'refactor' of https://github.com/RyanRory/loki-messenger-android into refactor 2021-01-11 11:06:01 +11:00
Brice
48201a90ea encrypt & decrypt with session protocol 2021-01-11 11:04:37 +11:00
Ryan ZHAO
4b53138373 moving attachment to libsession 2021-01-08 17:05:44 +11:00
Ryan ZHAO
0820e577e8 Merge branch 'refactor' of https://github.com/RyanRory/loki-messenger-android into refactor 2021-01-08 11:13:12 +11:00
Ryan ZHAO
bace36621d WIP finish message receiving 2021-01-08 11:13:05 +11:00
Ryan ZHAO
172991231c group address 2021-01-08 11:12:24 +11:00
Ryan ZHAO
27ea170194 move quote model to libsession 2021-01-08 11:12:06 +11:00
Ryan ZHAO
31efdb7ddb add recipient related stuff to storage 2021-01-08 11:11:50 +11:00
Ryan ZHAO
ed8eb5a239 fix open group message 2021-01-08 11:11:23 +11:00
Ryan ZHAO
91ef23081b move Recipient to libsession 2021-01-08 11:10:51 +11:00
Brice
842f00ee54 downloadattachmentjob implementation 2021-01-06 16:11:00 +11:00
Brice
3a9304098b fix conflict 2021-01-05 14:17:42 +11:00
Ryan ZHAO
2dcbcee66c minor fix after merging 2020-12-18 16:59:37 +11:00
Ryan ZHAO
80fa37e1a7 Merge branch 'refactor' of https://github.com/RyanRory/loki-messenger-android into refactor 2020-12-18 16:53:05 +11:00
Ryan ZHAO
c9673447c6 handle visible message & handle group update 2020-12-18 16:48:45 +11:00
Ryan ZHAO
886ca5c72b minor refactoring on message sender 2020-12-18 16:44:33 +11:00
Ryan ZHAO
1c4e4581c8 attachment in message provider 2020-12-18 16:44:13 +11:00
Ryan ZHAO
b642fb1b54 update message receiving job 2020-12-18 16:43:57 +11:00
Ryan ZHAO
2a4046d12c open group message & open group poller 2020-12-18 16:43:19 +11:00
Brice
873e0099f9 fix 2020-12-17 16:52:22 +11:00
Brice
9304971e50 AttachmentUploadJob implementation 2020-12-17 14:51:08 +11:00