Commit graph

262 commits

Author SHA1 Message Date
Audric Ackermann 0228cd5115
add attachment padding 2021-03-05 17:13:46 +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