Commit graph

483 commits

Author SHA1 Message Date
Audric Ackermann
eb0ddd85f4
add zombies logic for member leaving and removing 2021-05-05 16:40:15 +10:00
Audric Ackermann
7ec663df71
move SwarmPolling from window to require singleton 2021-05-05 16:40:14 +10:00
Audric Ackermann
6aa699ad23
fix deduplication for opengroups v1 & v2 2021-04-28 15:53:30 +10:00
Audric Ackermann
a26c5da6cb
Uniformize once and for all the conversation types
no more 'direct'. those are private convos
2021-04-28 14:20:22 +10:00
Audric Ackermann
98b69c17f0
add userblocking opengroupv2 and quoting back of messages 2021-04-27 16:56:34 +10:00
Audric Ackermann
4aeec224b4
add download of attachments for opengroupv2 2021-04-27 11:14:07 +10:00
Audric Ackermann
bc938f650e
move AttachmentsDownload to typescript 2021-04-26 16:29:04 +10:00
Audric Ackermann
34148e67ec
add return of url after v2 attachment upload 2021-04-26 16:15:27 +10:00
Audric Ackermann
35d66d8865
fix bug fetching new token every request 2021-04-23 17:05:10 +10:00
Audric Ackermann
3b30d13719
add some regex to identify Opengroupv2 vs Opengroupv1 convo Ids 2021-04-23 10:13:09 +10:00
Audric Ackermann
e3e1296788
add constant openGroupPrefix: publicChat: and use it 2021-04-23 09:45:12 +10:00
Audric Ackermann
786cd384fb
add the OpenGroupManagerV2 logic to add and remove rooms 2021-04-22 18:04:12 +10:00
Audric Ackermann
f7581cf4eb
increase prettier maxWidth to 100 2021-04-22 18:03:58 +10:00
Audric Ackermann
c07271109f
Add a ConversationType OPEN_GROUP 2021-04-20 15:52:19 +10:00
Audric Ackermann
b9586c90ce
working open group v2 getInfo for https only 2021-04-20 14:52:02 +10:00
Audric Ackermann
ec6a5995db
sync expire timer updates 2021-03-19 12:14:23 +11:00
Audric Ackermann
79193ee7be
refactor to Visible and ControlMessage types 2021-03-19 10:43:47 +11:00
Audric Ackermann
24d33c7900
Merge branch 'clearnet' into add-attachment-padding 2021-03-16 11:22:48 +11:00
Audric Ackermann
0228cd5115
add attachment padding 2021-03-05 17:13:46 +11:00
Audric Ackermann
553f264d12
make unread attrs as before a number, and remove calculatingPow
calculating pow is just the same as sending state
2021-03-05 13:48:58 +11:00
Audric Ackermann
ad117fe4e5
uniformized redux convo type and getProps() of conversation 2021-03-05 11:11:53 +11:00
Audric Ackermann
e1114c8ce7
add some types to Data.ts calls 2021-03-05 09:24:25 +11:00
Audric Ackermann
95e1d7983f
be sure make contacts appear on left pane on configMessage handling 2021-03-04 14:07:02 +11:00
Audric Ackermann
8c4e071c00
crop avatars to what iOS expects 2021-03-03 17:20:32 +11:00
Audric Ackermann
aac54e6045
Merge remote-tracking branch 'upstream/clearnet' into restore-handle-configuration 2021-03-03 13:54:39 +11:00
Audric Ackermann
8d45ea2742
do not unlock signin by linking if the displayName got is empty 2021-03-03 12:01:17 +11:00
Audric Ackermann
78257037bb
restoreFromSeed restores groups from first configMessage got 2021-03-03 12:00:41 +11:00
Audric Ackermann
0a8335b125
handle message while linking as if were already linked 2021-03-03 11:45:43 +11:00
Audric Ackermann
6fbe060973
move deleteAccount() to AccountManager 2021-03-03 10:36:30 +11:00
Audric Ackermann
c420bfcf74 only handle a single time the groups from a configurationMessage 2021-03-02 16:06:30 +11:00
Audric Ackermann
2fab4f0940 Use sentAt as lastJoinedTimestamp when we get a new closed group
This is to make sure we do not drop group updates between the message
adding us and now().
We only have to drop messages before we were added to the group, which
is the sent timestamp
2021-03-02 15:43:18 +11:00
Audric Ackermann
533b95c827 fix updateMessage being always at the end of the messagesList
this was because we were using Date.now() always rather than using the
envelope timestamp to save the update
2021-03-02 13:40:48 +11:00
Audric Ackermann
05e9c936ff speed up loading of messages by not notify on every new message 2021-03-02 12:41:25 +11:00
Audric Ackermann
c656dd25cf move configMessage handling to a another file 2021-03-02 11:27:20 +11:00
Audric Ackermann
853222d25b Do not sync configurationMessage on app load if restored from seed 2021-03-01 17:55:41 +11:00
Audric Ackermann
9586c3a06a add linking of a device to the Registration logic 2021-03-01 16:20:35 +11:00
Audric Ackermann
305ece1c7c update our profile on incoming configMessage sent after our last update 2021-03-01 14:21:29 +11:00
Audric Ackermann
fc24df00fb
always share our profileKey on outgoing messages 2021-02-26 11:48:08 +11:00
Audric Ackermann
641f9ee368
Fix the bug where if we leave and get added back, we get removed again 2021-02-25 17:31:18 +11:00
Audric Ackermann
c55f204440
Merge branch 'clearnet' into restore-handle-configuration 2021-02-25 16:36:03 +11:00
Audric Ackermann
e466062f15 WIP 2021-02-23 14:22:01 +11:00
Audric Ackermann
31e2341978 update last message on message delete
otherwise, we might still see the last message on the leftpane if the
message removed was the last one
2021-02-22 12:41:24 +11:00
Audric Ackermann
ca22b4635f fixup some building of sync message issues 2021-02-22 12:00:08 +11:00
Audric Ackermann
7a3a12ccdc Merge branch 'clearnet' into move-models-to-ts-2 2021-02-19 17:53:26 +11:00
Audric Ackermann
8716fbf495 improve sent message handling by setting the correct convoId at start 2021-02-19 17:47:54 +11:00
Audric Ackermann
bb3641b39a remove the forceSave option for unprocessed message too 2021-02-19 17:46:13 +11:00
Audric Ackermann
25e03eba35 fix lint 2021-02-19 15:13:43 +11:00
Audric Ackermann
3ee0ccfac8 remove the forceSave logic for a message, always insert or replace 2021-02-19 13:01:24 +11:00
Audric Ackermann
d844c5141e remove unprocessed from store. Nothing was stored in the store
it was simply as passthrough to the Data file.
No we directly call the data file instead
2021-02-19 10:35:11 +11:00
Audric Ackermann
a34720501c update avatar on convo only if DL+decrypt is OK 2021-02-16 14:22:22 +11:00
Audric Ackermann
720922cc71 be sure to leave a group when leaving from another device 2021-02-15 15:36:14 +11:00
Audric Ackermann
8ea9f02cec Move data.js to data.ts 2021-02-15 15:16:52 +11:00
Audric Ackermann
7b81c4213a
Merge clearnet 2021-02-12 14:08:11 +11:00
Audric Ackermann
0c1343cad5
add a way to share currently distributing keypair to added members 2021-02-12 11:00:22 +11:00
Audric Ackermann
78e7255cb8
send the keypair to added members if we are admin
and remove request encryption keypair handling
2021-02-11 16:40:05 +11:00
Audric Ackermann
2d7515cf0b
Merge branch 'clearnet' into move-models-to-ts-2 2021-02-11 14:45:09 +11:00
Audric Ackermann
df3ca5d38a
add a sql function to check if a keypair is already saved in db 2021-02-11 14:33:55 +11:00
Audric Ackermann
a31c457c08
allow closedgroup new message to be sent to our other devices
also, do not drop it on the receiving side
2021-02-11 14:04:08 +11:00
Audric Ackermann
01f834ae98
only handle the first ever configuration message incoming 2021-02-11 11:25:03 +11:00
Audric Ackermann
6d28f343c9
try to decrypt unprocessed message when we get a new encryptionkeypair 2021-02-11 10:23:21 +11:00
Audric Ackermann
ad06b94708 do not drop a message which was not decrypted for a medium group
Instead, trigger a request to the group to get the encryption keypair.
We will try to process those messages on an app restart
2021-02-10 18:12:11 +11:00
Audric Ackermann
375c5ba1a8 add the request and reply of an encryptionKeyPair if needed 2021-02-10 17:45:11 +11:00
Audric Ackermann
850233bc9e review PR 2021-02-10 10:31:48 +11:00
Audric Ackermann
ed84760f0e
add a tslint rule to forbid use of async without await 2021-02-09 17:00:54 +11:00
Audric Ackermann
36fab86d30
Merge remote-tracking branch 'upstream/clearnet' into move-models-to-ts-2 2021-02-09 15:54:34 +11:00
Audric Ackermann
c7fa765b65
be sure to have a conversationId on handleMessageEvent() 2021-02-09 14:44:23 +11:00
Audric Ackermann
df0b44db4c
Merge remote-tracking branch 'upstream/clearnet' into multi-device-v2 2021-02-09 13:46:06 +11:00
Audric Ackermann
5ec9722e00
autobind typescript class methods with autobind 2021-02-08 17:17:26 +11:00
Audric Ackermann
b76ce0f2ff
update models to TS part2 2021-02-08 16:18:36 +11:00
Audric Ackermann
65ed81e980
enable explicit group updates on the sending side 2021-02-08 15:37:40 +11:00
Audric Ackermann
ebd94ce15c
fix order of added new group in leftPane 2021-02-08 15:33:39 +11:00
Audric Ackermann
3b3378a2ee
finish explicit group updates 2021-02-08 15:33:16 +11:00
Audric Ackermann
3342c7fd26
lint 2021-02-08 15:30:48 +11:00
Audric Ackermann
1d85a6dc5f
trigger new message onError while handling a request 2021-02-08 15:23:57 +11:00
Audric Ackermann
a51f95d28c
move models to TS part1 2021-02-08 15:20:47 +11:00
Audric Ackermann
aede96b69b
enable explicit group updates on the sending side 2021-02-08 14:12:44 +11:00
Audric Ackermann
b88ea110e8
Add multi device v2 support 2021-02-08 11:56:14 +11:00
Audric Ackermann
64737a89d7
add ConfigurationMessage 2021-02-04 11:53:37 +11:00
Audric Ackermann
2462e12a04
Merge pull request #1461 from Bilb/explicit-group-updates
Explicit group updates
2021-02-01 15:45:11 +11:00
Audric Ackermann
c06f710b3b
fix order of added new group in leftPane 2021-02-01 13:12:44 +11:00
Audric Ackermann
334da0a169
finish explicit group updates 2021-02-01 11:35:06 +11:00
Audric Ackermann
82a7ed73df
trigger new message onError while handling a request 2021-01-29 11:44:22 +11:00
Audric Ackermann
46fdebe3d7
Merge pull request #1459 from Bilb/improve-open-group-loading-speed
Improve open group loading speed
2021-01-29 11:43:41 +11:00
Audric Ackermann
0e25ab2874
WIP 2021-01-29 11:29:42 +11:00
Audric Ackermann
6e11c6db2e
remove all reference to closed group update v2 2021-01-28 12:06:51 +11:00
Audric Ackermann
999e6fc712
replace GroupUpdateV2 in proto to ClosedGroupControlMessage 2021-01-28 11:39:07 +11:00
Audric Ackermann
79028ebaeb
remove isUnidentifiedDelivery 2021-01-28 11:28:57 +11:00
Audric Ackermann
c5ad206239
fix message added not shwon on SessionMessageList 2021-01-28 11:11:35 +11:00
Audric Ackermann
8b8fe66615 update profile of users when getting profile from opengroup message 2021-01-27 18:08:37 +11:00
Audric Ackermann
34e5648681 fix metadatabadges for closed group
do not show crown nor Mod badge
2021-01-27 18:08:02 +11:00
Audric Ackermann
b218611831 remove contactCollection in convos. 2021-01-27 16:12:32 +11:00
Audric Ackermann
273eedc6a9 remove hasSignalAccount and Sealed Sender unused 2021-01-27 15:33:51 +11:00
Audric Ackermann
e3a6e24898 remove body pending loading of message > 2000.
Also remove the limit when sending text messages
2021-01-27 15:26:30 +11:00
Audric Ackermann
eadfbc9f6d
Merge remote-tracking branch 'upstream/clearnet' into clean-and-moderator-dialog-update 2021-01-22 14:41:06 +11:00
Audric Ackermann
bb037f7edb
fix profile updates when flag is set (do not drop message) 2021-01-22 13:51:48 +11:00
Audric Ackermann
a0703bc2f9
remove primary and secondary device separate status 2021-01-21 17:49:13 +11:00
Audric Ackermann
135fc3b366
remove prekeys 2021-01-21 17:49:07 +11:00
Audric Ackermann
fd18345c5a
remove handling of rss related things completely 2021-01-19 16:11:33 +11:00
Audric Ackermann
21c62c167e
remove typing indicator when we get a dataMessage 2021-01-18 11:53:35 +11:00
Audric Ackermann
72c96ea998
remove most of the SessionProtocol unused stuff
- prekeys
- SessionCipher
- LokiCipher
- endSession and the reset Session logic
- what we called Sessionprotocol manager (to keep track of session with
everyone)
2021-01-18 10:58:34 +11:00
Audric Ackermann
979a9058e3
remove verified number - related features (partial) 2021-01-18 10:35:16 +11:00
Audric Ackermann
75b7788fa9
remove stuff related to web api 2021-01-15 10:56:49 +11:00
Audric Ackermann
f1d84177a0 fix expirationTimer updates closed group desktop to ios 2021-01-14 16:34:05 +11:00
Audric Ackermann
58be168227 drop groupUpdates which happened before we joined the group 2021-01-14 14:37:09 +11:00
Audric Ackermann
6856c0e748
remove updateTextInputState not needed and add left to menu tests 2021-01-13 15:28:20 +11:00
Audric Ackermann
cbd0e63641
add admin dialog to warn him about leaving for v2 closed group 2021-01-13 11:02:22 +11:00
Audric Ackermann
d43ae09eb0
first working version of closed group v2 2021-01-12 16:56:21 +11:00
Audric Ackermann
2fe6b11e89
move ConversationController to typescript 2021-01-06 14:26:53 +11:00
Audric Ackermann
adf0d03d35
add test for the MessageEncrypter using Session protocol 2021-01-05 14:48:46 +11:00
Audric Ackermann
0a4cae4183
fix duplicates message for open groups 2020-12-17 15:07:32 +11:00
Audric Ackermann
2af4938ff2
fix SessionProtocol decrypt of messages with Android
also disable the old SessionRequest logic
2020-12-17 12:17:11 +11:00
Audric Ackermann
b0a229bf13 add Dialog on app start to ask to update SessionID 2020-12-16 16:35:30 +11:00
Audric Ackermann
1045bfeba8 add SessionProtocol wip 2020-12-16 13:56:29 +11:00
Audric Ackermann
6b56f1174e search for duplicates using the sent_at timestamp to speedup db call 2020-12-15 17:15:25 +11:00
Audric Ackermann
cd3ec67099 add the encryptWithSessionProtocol method 2020-12-15 17:15:00 +11:00
Audric Ackermann
cf25e89a14 cleanup unused code 2020-12-15 17:14:18 +11:00
Audric Ackermann
4026e0162e fix a bug preventing fitlering of duplicates for open group messages 2020-12-15 10:45:34 +11:00
Audric Ackermann
228e4ed662
move MessageController to typescript 2020-12-02 11:26:31 +11:00
Audric Ackermann
184b1984c3
fix autoplay unmuted video when video attachment is added 2020-12-01 16:16:35 +11:00
Audric Ackermann
0addf2146a
add some logs to attachment download 2020-11-24 16:20:02 +11:00
Audric Ackermann
9f14924e65
push toast if gif size is too big 2020-11-23 17:05:41 +11:00
Audric Ackermann
da62ba6829
Merge remote-tracking branch 'upstream/clearnet' into react-refactor 2020-11-23 16:26:52 +11:00
Audric Ackermann
97ff60f3bb
reset input for selecting file on file choosen on CompositionBox 2020-11-23 15:01:28 +11:00
Audric Ackermann
380d296bb2
send session request if we get a message we cannot decode
This handle the case where we delete a contact from A, lets call him B
All message after that delete from B to A will be not decoded correctly.

The issue is that the record is existing, but there is no session in it.
The fix is that if we get a message and a record is found, but has not
session in it, we trigger a session request with that user
2020-11-23 13:24:57 +11:00
Audric Ackermann
b5af8eb215
Add Mentions with react-mentions 2020-11-18 15:27:13 +11:00
Audric Ackermann
531e7bab46
print error if we get a 178 attachment size.
This is a dirty hack until the root cause is fixed.
2020-11-17 15:26:50 +11:00
Audric Ackermann
221f264de6
rename all saveMessage to message.commit() 2020-11-12 09:21:19 +11:00
Audric Ackermann
209fe460e4
lint and fix toast blur when dialog shwon 2020-11-10 14:55:10 +11:00
Audric Ackermann
357421f161
rename window.console.log to window.log.info 2020-11-09 14:28:02 +11:00
Maxim Shishmarev
27859b13aa Added an option to use v3/lsrpc endpoint for more compact (base64) file reponses 2020-11-09 14:25:24 +11:00
Audric Ackermann
e613613416
show toast with react-toastify and make them a styled-component 2020-11-09 11:25:57 +11:00
Audric Ackermann
6fd8ea20c7
fix restoring of session after restore from seed 2020-11-06 14:44:04 +11:00
Audric Ackermann
dad9e5297c
make the last seen indicator work as expected 2020-11-02 14:03:11 +11:00
Audric Ackermann
940ad57f83
rework the way unread count works
we no longer refresh on each message read, only once the whole
conversation is read.
2020-10-30 16:02:18 +11:00
Audric Ackermann
ef3f3d0af5
enable back link previews in sent message 2020-10-28 14:11:57 +11:00
Audric Ackermann
68e9376c5e
throw error on invalid response while downloading attachment 2020-10-27 12:37:26 +11:00
Audric Ackermann
17ac8c4343
Merge remote-tracking branch 'upstream/clearnet' into react-refactor 2020-10-27 09:14:08 +11:00
Maxim Shishmarev
5ecf43c124 Fix open group file uploads using incorrect server 2020-10-22 17:14:10 +11:00
Audric Ackermann
3998bbc97d
fix more typing errors of conversation object 2020-10-16 14:55:12 +11:00
Audric Ackermann
c41eaada25
move display of message list to a subcomponent 2020-10-16 14:54:31 +11:00
Audric Ackermann
026a1930ed
add a getOrThrow to ConversationController when we expect this convo 2020-10-15 17:19:49 +11:00
Audric Ackermann
144ae41529
add type for ConversationController, remove showStartConversation
and cleanup scss
2020-10-15 16:43:51 +11:00
Audric Ackermann
c7e54c4257
make attachment download use onion routing 2020-10-08 15:36:57 +11:00
Audric Ackermann
b050a3740d
clean all updateConversation calls to convo.commit() 2020-10-07 15:25:57 +11:00
Audric Ackermann
1a5a0786a1
fix new medium group mark as unread then as read on opened 2020-10-07 15:22:22 +11:00
Audric Ackermann
7a8a22701b
Merge pull request #1370 from Bilb/fix-medium-groups 2020-10-05 14:50:02 +11:00
Audric Ackermann
a1c58044d3
Merge pull request #1371 from Bilb/drop-admin-medium-groups
require admin for editing a closed group, but not a medium one
2020-10-05 14:08:58 +11:00
Audric Ackermann
2f8f79c5d2
make message clearer when we try to reuse a keyIdx in the ratchet 2020-10-05 12:56:39 +11:00
Audric Ackermann
99608440d0
Merge pull request #1358 from Bilb/generate-own-sender-key-not-found
Generate our own senderkey if it does not exist
2020-10-05 12:49:52 +11:00
Audric Ackermann
4215aa1e3b
require admin for editing a closed group, but not a medium one 2020-10-05 11:39:00 +11:00
Audric Ackermann
05e682cdc2
enable back swarm polling when we get added back to a group 2020-10-05 10:53:09 +11:00
Audric Ackermann
3fa1a8f2b5
mark medium group as not left if we get a message INFO adding us back 2020-10-02 15:29:43 +10:00
Audric Ackermann
cfb9e65f30
trigger new ratchet send on message sent success
send our new ratchet to all new members when we just sent a message
containing no senderKey in it.

an set but empty senderKey array should only be sent when a user left or
was removed.
2020-10-02 14:27:46 +10:00
Audric Ackermann
a05b6556b0
remove unused handleQuit for medium groups 2020-10-01 16:16:46 +10:00
Audric Ackermann
e0e0830d3b
remove all ratchet when needed to get fresh senderKey from members 2020-10-01 16:13:26 +10:00
Audric Ackermann
5d7d66f65a
fix bug making session request being sent for medium group create 2020-10-01 15:13:06 +10:00
Audric Ackermann
a80f9a5965
fix medium group to match mobile way 2020-10-01 15:12:51 +10:00
Audric Ackermann
06d0683ce5
WIP 2020-09-30 10:23:27 +10:00
Audric Ackermann
22afe50c05
make messageQueue handle medium group message in sendToGroup 2020-09-30 10:22:36 +10:00
Audric Ackermann
d4e9b43f0c
remove QUIT type of mediumgroupupdate 2020-09-30 10:14:19 +10:00
Audric Ackermann
82be1ca60f
allow medium group updates from non admin 2020-09-25 13:45:40 +10:00
Audric Ackermann
c01cd634e4
Generate our own senderkey if it does not exist
This case can happen on restore from seed
2020-09-24 14:29:34 +10:00
Audric Ackermann
e5db9916a5
allow closed group updates from non-admin user 2020-09-24 09:27:44 +10:00
Audric Ackermann
4505bed61b
add migration to drop existing textsecure prefix from group convo ids 2020-09-22 08:58:21 +10:00
Audric Ackermann
86b15328c1
drop the prefix for group on the incoming message object 2020-09-21 15:59:56 +10:00
Audric Ackermann
8326870b1a
use senderIdentity for incoming messages on mediumGroups 2020-09-18 15:44:17 +10:00
Audric Ackermann
514eb9ba98
fix pubkey regex for mobile medium groups 2020-09-17 19:46:06 +10:00
Audric Ackermann
215c964fab
fix padding for medium group 2020-09-17 19:36:58 +10:00
Audric Ackermann
8123508b51
fix avatar closed group and pubkey for medium mobile groups 2020-09-17 19:36:46 +10:00
Audric Ackermann
1545256cbe
Merge pull request #1337 from Bilb/fix-ssk 2020-09-15 10:47:00 +10:00
Audric Ackermann
56a81ccc93
Merge pull request #1336 from Bilb/remove-jazzicon 2020-09-15 10:26:12 +10:00
Audric Ackermann
04063cd0fb
make medium group pubkey be in bytes rather than str 2020-09-15 09:04:10 +10:00
Audric Ackermann
7054268b14
use source from decoded content and not envelope on ssk 2020-09-14 12:15:22 +10:00
Audric Ackermann
9576944191
fix download of attachments on open group 2020-09-11 16:38:54 +10:00
Audric Ackermann
1da4ae69c2
render NoteToSelf list item as a normal conversation 2020-09-10 15:52:36 +10:00
Audric Ackermann
c34edee180
Merge pull request #1321 from Bilb/use-created-at-server-timestamp
Fixes #1249
2020-09-08 15:15:01 +10:00
Audric Ackermann
a0e437ab87
fix ordering of our own message on message pulled from server 2020-10-08 14:29:36 +11:00
Audric Ackermann
7501d71542
fix polling logic on network errors #995 2020-09-07 14:17:59 +10:00
Audric Ackermann
76664d9a11
use created_at for public group to order messages 2020-09-04 15:26:26 +10:00
Audric Ackermann
adfaa8861f
fix build 2020-09-02 13:51:14 +10:00
Audric Ackermann
cd686269cb
use server created_at timestamp to order messages
Also update the way we check for duplicated message to allow a 10s
window with the same body rather than an exact match of timestamp.

This is needed as the timestamp of the message pulled is now the one of
the creation of the server, and not the same we have locally (sent at).
2020-09-02 12:09:23 +10:00
Audric Ackermann
dafe8a80ab
shortcut newReceiver when calling dataMessage exported functions 2020-09-02 12:07:44 +10:00
Mikunj
22c64395d9 Remove multi-device warnings 2020-08-04 12:45:12 +10:00
Mikunj
c0fca99485 Disable multi device 2020-08-04 11:23:48 +10:00
Audric Ackermann
89579ebd35
refactor SessionPasswordModal to handle errors on length 2020-07-30 10:58:17 +10:00
Audric Ackermann
582499be25
do not drop group control message from blocked user 2020-07-30 08:42:31 +10:00
Maxim Shishmarev
d95dfdc04a
Merge pull request #1280 from msgmaxim/medium-group-fixes
Medium group protocol changes
2020-07-28 14:23:58 +10:00
Audric Ackermann
5f47c42038
when pulling public message, use the MultiDeviceProtocol to check
if this message is coming from us rather than checking the cached values
2020-07-28 12:20:54 +10:00
Maxim Shishmarev
db05592400 Address review comments 2020-07-28 12:13:41 +10:00
Audric Ackermann
cd516aab64
lint 2020-07-23 16:29:19 +10:00
Audric Ackermann
3e23039adb
do not sync blocked closed group as mobile is not ready yet 2020-07-23 16:15:34 +10:00
Maxim Shishmarev
cc43555cd2 Merge branch 'clearnet' into medium-group-fixes 2020-07-23 15:39:46 +10:00
Audric Ackermann
d2a4757061
trigger and handle blocked contacts/groups as a list on block/unblock 2020-07-23 10:53:24 +10:00
Maxim Shishmarev
87144336b7 Large refactor of medium groups. Fixes them for multidevice 2020-07-22 17:41:21 +10:00
Audric Ackermann
ae6db8640a
Merge pull request #1273 from Bilb/fix-showing-secondary-conversation-sync 2020-07-20 11:36:57 +10:00
Audric Ackermann
dd3080d9fe
mark conversation as secondary on message synced when needed 2020-07-20 09:46:05 +10:00
Audric Ackermann
a17edd0ce9
enable back delivery Receipt and read receipt message 2020-07-16 15:54:17 +10:00
Audric Ackermann
b04a64da8c
mark secondary devices as secondary from the right primary key 2020-07-16 14:08:53 +10:00
Audric Ackermann
9a5c73af3c
do not update loki display name is given string is '' onContactSync 2020-07-16 11:41:59 +10:00
Audric Ackermann
ba7241b2cb
contactSync: mark conversation as secondary when they are 2020-07-16 11:41:38 +10:00
Audric Ackermann
3775a9ef05
drop empty synced message (or autoFR) 2020-07-16 11:41:09 +10:00
Audric Ackermann
9df0a79fb9
remove blockedNumber.js 2020-07-16 10:24:13 +10:00
Audric Ackermann
e6e179b45b
Merge branch 'clearnet' into drop-auto-fr-messages 2020-07-16 10:07:18 +10:00
Audric Ackermann
0c8e34a78e
remove envelope from cache if sentMessage is empty 2020-07-16 09:41:16 +10:00
Audric Ackermann
17cae3937d
drop synced message with the autoFR content 2020-07-15 16:34:24 +10:00
Audric Ackermann
598d6d1010
drop auto fr messages 'Please Accept... ' 2020-07-15 14:32:05 +10:00
Audric Ackermann
45cdbcbb2f
handle sync of blocked contact/groups as sync events 2020-07-14 16:22:37 +10:00
Audric Ackermann
66697bc235
remove unused addBlockedGroup function since we moved to controller
for blocked group
2020-07-14 16:21:39 +10:00
Maxim Shishmarev
237bd84b35 Fix medium group sending for single device users; protocol changes 2020-07-10 17:59:33 +10:00
Mikunj
646973e330 Made changes to how messages are sent.
Instead of blocking the message queue when we don't have a session, we instead just send out a session request and send the queued messages using fallback encryption.
This means that users will be able to message right away without having to wait.
The only down side is that all messages sent before sessions are established will be using the weaker encryption.

This change also means we have to detach session requests from envelope type (which is a good thing) and thus now a message is a session request if it contains a preKeyBundle.
2020-07-10 10:00:21 +10:00
Audric Ackermann
d92bf6febf
Merge pull request #1229 from Bilb/fix-open-groups-ui
* fix sync of closed groups
* fix showing of contacts and closed groups after sync
* create closed group: only show direct conversations 
* handle message sending events for open groups
2020-07-09 17:23:51 +10:00
Audric Ackermann
f03d66de38
use active_at to show and sync real contacts from contact list 2020-07-09 16:09:30 +10:00
Mikunj
f48e10fccd Fix profile keys not being decoded properly 2020-07-09 13:55:47 +10:00
Audric Ackermann
880e039652
handle grantSignature undefined 2020-07-09 10:28:10 +10:00
Audric Ackermann
d8df91fa15
use the groupId as conversation id to create a conversation when this is a group 2020-07-09 09:05:44 +10:00
Audric Ackermann
3fa54c3ef9
Merge pull request #1226 from Bilb/various-closed-group-fixes 2020-07-08 18:06:43 +10:00
Audric Ackermann
db1a133c25
drop an expiretimer message with the same timer already on use 2020-07-08 15:26:02 +10:00
Audric Ackermann
d5cfcf9edc
Merge pull request #1223 from Bilb/various-closed-group-fixes
* fix display name and avatar to be shown when message is coming from a secondary device
* fix show of expiretimer in the group conversation when it is for it.
* fix a bug creating empty conversation when sync closed group message is received on secondary device
* trigger an expiretimer update message to all members when updating a group.
* trigger an expiretimer update message when sending back group details (after a requestGroupInfo)
2020-07-08 11:29:08 +10:00
Audric Ackermann
696fbd8d7a
address review 2020-07-08 11:14:54 +10:00
Maxim Shishmarev
a2b80a5e68 Address review comments 2020-07-08 10:57:24 +10:00
Audric Ackermann
bd67040086
handle empty group id after decoding and set it to null 2020-07-08 10:13:21 +10:00
Maxim Shishmarev
ae35626b35
Merge pull request #1221 from msgmaxim/ts-onion-requests
Move onion requests to typescript
2020-07-07 16:01:19 +10:00
Mikunj Varsani
f11e0f2cd0
Merge pull request #1222 from Mikunj/blocking
Fix up Blocking
2020-07-07 15:51:59 +10:00
Maxim Shishmarev
ccc487528d Fix edkey extraction 2020-07-07 15:34:56 +10:00
Mikunj
f008a8b3ef Always block the primary device instead of all devices.
Added isBlockedAsync function.
2020-07-07 15:31:59 +10:00
Mikunj
2a1afa9fe7 Forgot checking for our own devices 2020-07-07 14:47:14 +10:00
Mikunj
3159baebfa Fix case where blocked user adds a new linked device. 2020-07-07 14:41:37 +10:00
Audric Ackermann
0366f29473
fix expiretimer on closed groups message showing on session conversation 2020-07-07 14:33:47 +10:00
Audric Ackermann
a02aa75f1f
Merge remote-tracking branch 'upstream/clearnet' into various-closed-group-fixes 2020-07-07 14:17:57 +10:00
Audric Ackermann
bfd19af04d
use MultiDeviceProtocol.isOurDevice when possible 2020-07-07 13:34:36 +10:00
Audric Ackermann
15b8600e25
fix display name and avatar not being updated when message from secondary 2020-07-07 13:30:25 +10:00
Mikunj
aa75205bbd Move BlockedNumberController to ts 2020-07-07 10:24:24 +10:00
Audric Ackermann
235ab0bfb3
create convo for both primary and secondary in receivemessage 2020-07-06 16:08:11 +10:00
Audric Ackermann
2257420523
ignore other empty buffers which should be null after protobuf decode 2020-07-06 14:07:37 +10:00
Mikunj Varsani
26e3eca1a2
Merge pull request #1215 from Mikunj/session-restoration
Automatically restore session on no record error
2020-07-06 12:23:51 +10:00
Mikunj
8f82e7a442 Fix multi device pairing 2020-07-06 11:53:52 +10:00
Mikunj
f33897abe2 Automatically restore session on no record error 2020-07-06 10:38:04 +10:00
Mikunj
2d5230715f Merge branch 'clearnet' into closed-group-fixes 2020-07-03 14:06:12 +10:00
Mikunj
c422c9e2ad Lint 2020-07-03 13:59:14 +10:00
Mikunj
269c87a42e Fix closed group issues 2020-07-03 13:21:33 +10:00
Mikunj
8d11660b13 Fix attachments 2020-07-03 10:08:24 +10:00
Maxim Shishmarev
7e737a3ccd Merge branch 'clearnet' into refactor-polling 2020-07-02 15:57:47 +10:00
Maxim Shishmarev
7dd9469074 Further improve imports 2020-07-02 15:02:32 +10:00
Audric Ackermann
7c89b291de
Merge pull request #1205 from Bilb/handle-message-sending-events 2020-07-02 05:54:54 +01:00
Maxim Shishmarev
b31b6bb912 Lint 2020-07-02 12:47:31 +10:00
Maxim Shishmarev
255c7ada68 More clean up in message_receiver.js 2020-07-02 12:32:13 +10:00
Maxim Shishmarev
6fcc1f7ae4 Merge branch 'clearnet' into refactor-polling 2020-07-02 12:07:37 +10:00
Audric Ackermann
bbebfa4c7e
remove fixed comments 2020-07-02 11:50:31 +10:00
Audric Ackermann
f3ae798b12
remove SESSION_REQUEST flag from DataMessage. now in envelope 2020-07-02 09:46:55 +10:00
Maxim Shishmarev
468ad9f71d Add more type annotations 2020-07-01 16:20:54 +10:00