Commit graph

429 commits

Author SHA1 Message Date
Mikunj c0fca99485 Disable multi device 2020-08-04 11:23:48 +10:00
Audric Ackermann 933eb73aa1
Merge remote-tracking branch 'upstream/clearnet' into fix-integration-tests 2020-08-03 11:48:00 +10:00
Audric Ackermann 6d65c9cc0a
make sendMessage return -1 on fail rather than false 2020-07-31 11:37:59 +10:00
Audric Ackermann 44349079ab
fix delete of open group messages 2020-07-31 09:49:36 +10:00
Audric Ackermann 64dff64925
fix mentions notification displayname rather than pubkeys
* replace @pubkeys with their corresponding display name if found
* fix the display of the @ sign on the conversationListItem
2020-07-29 15:22:49 +10:00
Audric Ackermann 708a999ff6
fix caption for attachments when they are set 2020-07-29 12:07:06 +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
Maxim Shishmarev db05592400 Address review comments 2020-07-28 12:13:41 +10:00
Audric Ackermann ad24ad28d6
Merge pull request #1284 from Bilb/fix-ttl-ugly-hack 2020-07-27 16:52:48 +10:00
Audric Ackermann eb06356b26
Merge pull request #1277 from Bilb/fix-blocklist-handle 2020-07-27 16:52:40 +10:00
Audric Ackermann 8558764768
fix open group integration tests 2020-07-27 11:27:37 +10:00
Audric Ackermann 52cb50f063
make lokiPlainFetch return a SnodeResponse object 2020-07-27 10:59:29 +10:00
Audric Ackermann 38724d0992
filter convos to block sync by getting list from BlockedNumberController 2020-07-27 08:57:44 +10:00
Maxim Shishmarev f1bc0ffc27 Fix export for file onions 2020-07-24 17:29:43 +10:00
Audric Ackermann 401c37c39e
make standardized menu, use them in ConversationHeader
and ConversationListItem
2020-07-24 16:40:44 +10:00
Audric Ackermann 394030b711
remove getDefaultTTL and use Constants values instead 2020-07-24 15:37:28 +10:00
Audric Ackermann 48edd431da
use constants rather than string for ttl 2020-07-24 15:29:33 +10:00
Audric Ackermann 467f96acac
substract 1 hour for control of ttl message so PN can ignore them 2020-07-24 14:48:56 +10:00
Audric Ackermann ce6263dc21
share ContextMenu item tests for ConversationListeItem and ConversationHeader 2020-07-24 11:24:37 +10:00
Audric Ackermann 8105f0647a
make a few unit tests quicker by polling more aggressively on results 2020-07-23 16:49:53 +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
Vincent 28a0d82ea2 Updating message recieving 2020-07-21 14:43:46 +10:00
Maxim Shishmarev 8f0d59f9b8 Fix not shuffling nodes requested for pubkey 2020-07-20 12:31:56 +10:00
Vincent 3591001ef1 audio component ui 2020-07-16 18:22:09 +10:00
Vincent c26e20d33f css-loader 2020-07-16 16:39:35 +10:00
Audric Ackermann c7b5fdf02d
Merge pull request #1246 from Bilb/accept-group-ids-from-mobile 2020-07-15 11:33:02 +10:00
Audric Ackermann 20a286d288
add comments about temporary fix with mobile group pubkeys regex 2020-07-15 11:17:05 +10:00
Audric Ackermann edc34649a4
Merge pull request #1241 from Bilb/fix-our-profile-picture-change 2020-07-14 13:08:16 +10:00
Audric Ackermann 4e56ad2419
Merge pull request #1244 from Bilb/fix-sending-errors-handling 2020-07-14 13:08:00 +10:00
Audric Ackermann f491158b3f
add the group id from mobile as valid pubkey key 2020-07-14 12:33:07 +10:00
Audric Ackermann 3fd260b793
enforce type of profileKey and signature on linking messages 2020-07-14 11:27:19 +10:00
Vincent 5216cc2c2e merge clearnet 2020-07-14 11:16:36 +10:00
Vincent c020eddef6 constants-to-ts 2020-07-14 11:06:26 +10:00
Audric Ackermann f641b9436b
fix our handling of snode sending errors so we have a real error shown
when a message fails to send because of it.

Also, fix the retry logic on the corresponding message
2020-07-14 08:55:26 +10:00
Maxim Shishmarev 1d1a62e683 Fix incorrectly syncing medium group chat messages 2020-07-13 18:16:22 +10:00
Vincent fd746a475a ui polished and ttl constants 2020-07-13 14:08:18 +10:00
Maxim Shishmarev d747249d4f Merge branch 'clearnet' into revive-medium-groups 2020-07-13 12:44:17 +10:00
Maxim Shishmarev 6351fc1d4c Lint 2020-07-13 12:40:03 +10:00
Maxim Shishmarev f6223ce5ab Use message queue for medium group chat messages 2020-07-13 12:35:42 +10:00
Vincent 39dea3b1bc Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into blocked-fixes 2020-07-13 11:13:31 +10:00
Vincent 9b07c8fc8e outline-class 2020-07-13 10:09:41 +10:00
Audric Ackermann a4fedaf75d
fix empty avatar being undefined rather than ''
building ClosedGroupUpdate message via ts makes it have an avatar
content with fields empty if we pass '' as avatar.

we wamt no avatar field at all
2020-07-13 09:07:52 +10:00
Maxim Shishmarev 237bd84b35 Fix medium group sending for single device users; protocol changes 2020-07-10 17:59:33 +10:00
Vincent ca96992a44 Pukbeyified 2020-07-10 11:33:34 +10:00
Vincent 68f2a90f7c pubkeys-in-message-encryptor-init 2020-07-10 11:24:23 +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
Maxim Shishmarev 7724df25cc Fix incorrect handling of pow update 2020-07-09 18:11:40 +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
Audric Ackermann 4aa0667686
OpenGroup: get conversation from conversationController rather than appDotNetApi 2020-07-09 10:33:26 +10:00
Audric Ackermann 880e039652
handle grantSignature undefined 2020-07-09 10:28:10 +10:00
Audric Ackermann 7fe188417a
Merge pull request #1227 from Bilb/fix-1.0.9-interoperability
include verb and path on outgoing websocket message
2020-07-09 08:14:33 +10:00
Audric Ackermann f8aa50546b
include verb and path on outgoing websocket message 2020-07-08 17:59:17 +10:00
Vincent 6cb05c3677 review-fixes 2020-07-08 15:36:59 +10:00
Vincent 4a13b1e6bb attemptConnection-complete 2020-07-08 15:25:18 +10:00
Vincent baf3050b1d @params 2020-07-08 15:12:52 +10:00
Vincent 3a3d412542 linted 2020-07-08 14:37:25 +10:00
Vincent e72970fdc7 load-conv-public 2020-07-08 12:14:46 +10:00
Vincent a005aa8a2e onLoading join 2020-07-08 11:41:30 +10:00
Vincent b05d2e6725 Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into https-open-group 2020-07-08 11:40:53 +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
Vincent 6111cb2d17 server-regex-tighten 2020-07-08 11:20:40 +10:00
Audric Ackermann 696fbd8d7a
address review 2020-07-08 11:14:54 +10:00
Vincent f6ae5386e9 getting opengroup conversation 2020-07-08 10:59:20 +10:00
Maxim Shishmarev a2b80a5e68 Address review comments 2020-07-08 10:57:24 +10:00
Vincent ab966e600a OpenGrop joining 2020-07-08 10:19:51 +10:00
Audric Ackermann 178060e4d2
handle Uint8Array in protobuf.convertToTS() 2020-07-08 09:34:35 +10:00
Maxim Shishmarev 29fe64f5d5 Fix retrieving with pubkey object 2020-07-07 18:33:40 +10:00
Vincent 54209e98a8 propogate join channel erros 2020-07-07 18:20:39 +10:00
Vincent 39b41cb222 joining-open-groups 2020-07-07 17:46:50 +10:00
Maxim Shishmarev ccc487528d Fix edkey extraction 2020-07-07 15:34:56 +10:00
Vincent 8484b9d3f6 regex-fiddling 2020-07-07 14:30:49 +10:00
Vincent ea23df2986 OpenGroup strict SSL verification 2020-07-07 14:21:11 +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
Vincent bcad497c7f regex-for-http 2020-07-07 13:20:26 +10:00
Maxim Shishmarev 6919f53a45 Move constants to preload.js 2020-07-07 11:05:04 +10:00
Maxim Shishmarev 12f73e23f2 Move onion requests to typescript 2020-07-07 09:57:52 +10:00
Audric Ackermann ed48818867
include old avatar and expireTimer on groupUpdate 2020-07-06 17:07:55 +10:00
Audric Ackermann 809b4d9461
Merge remote-tracking branch 'upstream/clearnet' into various-closed-group-fixes 2020-07-06 16:21:47 +10:00
Audric Ackermann 235ab0bfb3
create convo for both primary and secondary in receivemessage 2020-07-06 16:08:11 +10:00
Maxim Shishmarev d5a98b8b47 Remove swarm nodes from conversations 2020-07-06 15:41:52 +10:00
Mikunj 8f82e7a442 Fix multi device pairing 2020-07-06 11:53:52 +10:00
Mikunj 669648d9cb Fix expire timer 2020-07-03 16:38:50 +10:00
Mikunj Varsani 416d5f69c0
Merge pull request #1211 from Mikunj/closed-group-fixes
Closed group fixes
2020-07-03 15:40:06 +10:00
Maxim Shishmarev 6a41aa1d88
Merge pull request #1210 from msgmaxim/fix-some-tests
Stub out swarm polling
2020-07-03 15:18:13 +10:00
Mikunj 2d5230715f Merge branch 'clearnet' into closed-group-fixes 2020-07-03 14:06:12 +10:00
Maxim Shishmarev 9cdb7710ec Stub out swarm polling 2020-07-03 14:01:46 +10:00
Mikunj c422c9e2ad Lint 2020-07-03 13:59:14 +10:00
Mikunj fd547941d6 Fix sync message issue 2020-07-03 13:57:08 +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 114f6d083f Fix pubkey comparison 2020-07-02 15:42:36 +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 0474e84b19
fix profileKey sharing and avatar 2020-07-02 09:49:12 +10:00
Maxim Shishmarev 468ad9f71d Add more type annotations 2020-07-01 16:20:54 +10:00
Vincent d1a77b82ee rm tmp file 2020-07-01 12:55:34 +10:00
Vincent 7498a255a2 utils compatiblity merger 2020-07-01 12:26:49 +10:00
Audric Ackermann c95bf57b28
Merge remote-tracking branch 'upstream/clearnet' into handle-message-sending-events 2020-07-01 11:44:59 +10:00
Maxim Shishmarev 6295e4206d Clean up imports 2020-07-01 11:23:33 +10:00
Mikunj 7b355dae78 Fix grunt 2020-07-01 08:35:07 +10:00
Maxim Shishmarev 0904e7a8ca Refactor from message polling to content message handling 2020-06-30 18:10:35 +10:00
Mikunj 4a3188bbf9 minor fixes 2020-06-30 16:03:35 +10:00
Mikunj d4dc8aa2ed remove SyncMessageUtils.from 2020-06-30 15:28:53 +10:00
Mikunj a972c328c7 Change how sync messages are handled 2020-06-30 14:52:09 +10:00
Mikunj 347a1e5582 Add avatar uploading to attachment utils 2020-06-30 09:38:09 +10:00
Audric Ackermann c419ff9cd2
include display name in outgoing messages 2020-06-29 15:37:27 +10:00
Mikunj c589f4a4af Finish hooking up attachments 2020-06-29 14:17:05 +10:00
Mikunj fbbbadada5 Merge branch 'clearnet' into attachments 2020-06-29 13:14:35 +10:00
Vincent fadbb37022 Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into utils-tests 2020-06-29 13:14:17 +10:00
Audric Ackermann 5f2990d088
Merge pull request #1197 from Bilb/other-messages-new-sending 2020-06-29 02:34:29 +01:00
Vincent 2d0409f9c8 Merge branch 'gorup-tests' into utils-tests 2020-06-29 09:11:47 +10:00
Vincent e2e867d5c1 Merge branch 'clearnet' of https://github.com/loki-project/session-desktop into utils-tests 2020-06-29 08:40:10 +10:00
Vincent a6433fe5dd merge 2020-06-29 08:29:39 +10:00
Mikunj 13811233b6 Add session request expiry checks 2020-06-26 14:36:16 +10:00
Audric Ackermann 9941c12586
finish adding mediumGroupUpdates 2020-06-26 13:53:33 +10:00
Vincent c3af41cb80 merge 2020-06-26 13:17:35 +10:00
Vincent f4fdd42ef3 string-tests 2020-06-26 12:48:06 +10:00
Mikunj 366ccdf97d Add more functions 2020-06-26 12:33:47 +10:00
Mikunj b69ad7db16 Add attachment util 2020-06-26 11:58:05 +10:00
Audric Ackermann 39bad87a18
updateMediumGroup replaced with new pipeline 2020-06-26 11:08:27 +10:00
Audric Ackermann a43abfd436
move groupContextType to sub classes of Closedgroup 2020-06-26 10:56:53 +10:00
Vincent 32015eeab6 ptests 2020-06-26 03:21:23 +10:00
Audric Ackermann cae608fd01
drop typing message for public groups and fix opengroup sending 2020-06-25 15:38:00 +10:00
Audric Ackermann b07b195102
Merge remote-tracking branch 'upstream/clearnet' into other-messages-new-sending 2020-06-25 13:26:33 +10:00
Audric Ackermann 3b40837ffc
address Pr review 2020-06-25 12:35:02 +10:00
Audric Ackermann cd79b5051c
move more logic to build sync message in ts for ContactSync and GroupSync 2020-06-25 12:21:12 +10:00
Mikunj fb53f9ff36 Fix message queue 2020-06-25 12:13:53 +10:00
Audric Ackermann fea75de3fe
make the sessionEstablishedMessage nullMessage have some random content 2020-06-25 09:49:15 +10:00
Audric Ackermann d114b6c130
add verifierSyncMesage and syncReadMessages 2020-06-25 09:48:00 +10:00
Audric Ackermann 655cc0575e
add sync of closed groups/open groups/ contacts with new pipeline 2020-06-24 17:54:56 +10:00
Audric Ackermann aee7428282
remove non used function in session from sendMessage.js 2020-06-24 15:04:29 +10:00
Mikunj Varsani 006b5760c6
Merge pull request #1192 from Mikunj/send-to-group
Handle typing and expiration messages when sending to group
2020-06-24 15:02:33 +10:00
Mikunj b52544e6ba Fix imports 2020-06-24 14:28:32 +10:00
Mikunj 212b002c62 Fix typo 2020-06-24 14:25:34 +10:00
Mikunj c2c56bb9b0 Handle typing and expiration messages when sending to group 2020-06-24 13:05:12 +10:00
Mikunj d4ea483aa0 Filter invalid authorisations from the file server 2020-06-24 10:32:41 +10:00
vincent 152adbf4d5 syncMessage done 2020-06-24 05:39:29 +10:00
Audric Ackermann 6a13839d9d
address reviews 2020-06-23 15:20:51 +10:00
Audric Ackermann 9baefb573e
fix tests 2020-06-23 14:41:36 +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
Mikunj 53727b7e59 Update ClosedGroupChatMessage 2020-06-23 13:37:18 +10:00
Vincent f72423c2ba types-etc 2020-06-23 11:57:50 +10:00