Commit graph

235 commits

Author SHA1 Message Date
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
Mikunj
23b05107fb Fix closed group infinite request loop 2020-07-01 12:27:24 +10:00
Maxim Shishmarev
e2b5b6654b Clean up more imports 2020-07-01 12:13:01 +10:00
Maxim Shishmarev
6295e4206d Clean up imports 2020-07-01 11:23:33 +10:00
Maxim Shishmarev
0904e7a8ca Refactor from message polling to content message handling 2020-06-30 18:10:35 +10:00
Mikunj
225d7f84e4 Fix declaration file names 2020-06-30 09:52:55 +10:00
Audric Ackermann
1b011ca74e
fix groupUpdate including an empty kicked field 2020-06-29 10:30:16 +10:00
Audric Ackermann
39bad87a18
updateMediumGroup replaced with new pipeline 2020-06-26 11:08:27 +10:00
Audric Ackermann
6a13839d9d
address reviews 2020-06-23 15:20:51 +10:00
Audric Ackermann
0668798b72
Merge remote-tracking branch 'upstream/clearnet' into hooking-up-sending 2020-06-23 14:08:39 +10:00
Audric Ackermann
aa797f6670
various changes to be reverted. kind of working session chats only. 2020-06-23 13:55:47 +10:00
Audric Ackermann
cf7635428a
Merge remote-tracking branch 'upstream/clearnet' into hooking-up-sending 2020-06-23 11:55:08 +10:00
Audric Ackermann
bd940a9f79
add groupUpdate message and groupInfo to new pipeline 2020-06-22 18:39:43 +10:00
Audric Ackermann
b0ed0207e0
fix one to one (session) chats with just the body set 2020-06-22 17:44:55 +10:00
Audric Ackermann
029851400d
include endSession message with new pipeline 2020-06-22 10:50:19 +10:00
Mikunj
b85348569b Merge branch 'clearnet' into folder-restructure 2020-06-22 10:21:13 +10:00
Audric Ackermann
908316f00d
update ReadReceiptMessage and DeliveryReceiptMessage to new pipeline 2020-06-22 10:21:12 +10:00
Maxim Shishmarev
7fe6583608 Fix incorrect conversation id for incoming open group messages 2020-06-19 17:03:33 +10:00
Audric Ackermann
fbba5575ba
remove buildSessionRequest message 2020-06-19 15:12:56 +10:00
Audric Ackermann
6e1258e3d1
expirationTimerUpdate uses new sending pipeline 2020-06-19 14:30:40 +10:00
Audric Ackermann
34cec0be34
RequestGroupInfo via new pipeline 2020-06-19 12:52:07 +10:00
Vincent
99674ed2ba Fixup PubKey.isEqual 2020-06-18 13:53:47 +10:00
Audric Ackermann
4865b72e93
Merge remote-tracking branch 'upstream/clearnet' into receiver-remove-friend-request-logic 2020-06-17 13:16:31 +10:00
Audric Ackermann
fc7daadd41
updte profile of primary conversation when updating the secondary conversation 2020-06-17 12:04:28 +10:00
Audric Ackermann
417634086a
ignore public group on preprocessGroupMessage 2020-06-17 11:39:58 +10:00
Audric Ackermann
28fb1dd12a
address PR reviews 2020-06-17 11:39:26 +10:00
Mikunj
c027490d2f Merge fixes 2020-06-16 13:07:18 +10:00
Audric Ackermann
eb9a838af1
remove friends from UI logic 2020-06-16 10:04:18 +10:00
Audric Ackermann
bccdc3cf34
Merge remote-tracking branch 'upstream/clearnet' into receiver-remove-friend-request-logic 2020-06-15 15:16:36 +10:00
Mikunj
ae44f0da0f Remove old multi device functions 2020-06-15 14:38:06 +10:00
Mikunj
7b7d8c0e2a Remove multi device from libloki 2020-06-15 13:57:03 +10:00
Maxim Shishmarev
b98543a9fc Fix enum in a definition type 2020-06-15 11:51:44 +10:00
Maxim Shishmarev
eb280ec1e4 Move model definition files 2020-06-15 10:56:38 +10:00
Maxim Shishmarev
8ca7b8cfb4 Message receiving refactor: handleDataMessage onwards 2020-06-12 18:08:44 +10:00