Commit Graph

217 Commits

Author SHA1 Message Date
Mikunj a09e370e1d Added testing on pull request
Disable proxy in tests.
2020-02-28 14:51:09 +11:00
Audric Ackermann 6d03a63d4a
add sync of open groups on device link 2020-02-21 15:32:31 +11:00
Mikunj d00abed7da Linting 2020-02-19 13:30:10 +11:00
Mikunj a03185248c Fix check for valid sender when handling sync message 2020-02-19 13:28:26 +11:00
Mikunj 0eaebcbcac Don't send contact sync message with pairing authorisation.
Don't send secondary devices in contact sync messages.
2020-02-19 13:08:12 +11:00
Mikunj f35493ce9f Linting 2020-02-19 10:39:30 +11:00
Mikunj abf298ba25 Added sending of group sync message 2020-02-19 10:32:30 +11:00
Mikunj b61dd6a839 Don't send groups in contact sync message 2020-02-19 09:22:50 +11:00
Mikunj 1be4123133 Rename variable to be less confusing 2020-02-14 13:56:22 +11:00
Mikunj 942c76ce6b Linting 2020-02-14 09:01:46 +11:00
Mikunj 820ce5cdf0 Made session reset synchronous.
Clean up some code.
2020-02-14 08:39:24 +11:00
Mikunj Varsani 8ffb1a0a10 Refactor session reset handling 2020-02-13 13:05:20 +11:00
Mikunj Varsani 054a523738 Fix linked device sending automatic friend request when it already has keys for a device 2020-02-10 18:42:00 +11:00
Ryan Tharp dfb5b0ed9f throw instead of log 2020-02-09 20:16:17 -08:00
Ryan Tharp 0ac79b2275 convert logging to throws 2020-02-09 20:15:03 -08:00
Ryan Tharp 23fe8407ea fix typo 2020-02-09 20:12:07 -08:00
Ryan Tharp dbff390035 improve guards on loading keypair 2020-02-09 19:59:40 -08:00
Vincent 9dcc851ebd Updated all icon references 2020-01-30 14:19:07 +11:00
Maxim Shishmarev 02320334f0 Remove P2P 2020-01-30 11:47:37 +11:00
Maxim Shishmarev 3472a1a938 Remove unused destinationRegistrationId; lint 2020-01-29 12:11:15 +11:00
Maxim Shishmarev b7e93ab597 Support sealed sender for friend requests 2020-01-29 11:08:43 +11:00
Audric Ackermann 3b24714f3e
Sort messages by sent_at (#718)
Sort messages by sent_at
2020-01-28 23:46:41 +00:00
Vincent a1a582d7ea Session branding fixes 2020-01-21 15:18:05 +11:00
Vincent 5fbbdc33c3 Signal branding 2020-01-21 14:59:18 +11:00
Maxim Shishmarev 033492a200 Sort messages by sent_at 2020-01-13 15:37:55 +11:00
sachaaaaa 7c52a1d038 encrypt and decrypt images before upload and after download 2019-11-29 15:15:05 +11:00
sachaaaaa db0068b429 Sending and handling of special UNPAIRING_REQUEST message 2019-11-21 13:50:18 +11:00
Beaudan Campbell-Brown a2e8e6480f
Merge pull request #539 from neuroscr/multidevice-publicchat
[multi-device] public chat
2019-11-15 12:10:56 +11:00
Ryan Tharp 66eae90c38 refactor verifyAuthorisation out of validateAuthorisation 2019-11-14 16:36:19 -08:00
Beaudan Brown 807f4cbd2a Storing primary device pubkey on the conversation model for easier access, ensuring that we accept all the friend requests from the primary conversation rather than the secondary 2019-11-13 17:01:21 +11:00
Beaudan Brown 24a687c106 Throttle the refreshing of device mappings to once every minute 2019-11-13 13:34:27 +11:00
Beaudan Brown 74045d58d7 Use Int32 for the contact list buffer 2019-11-13 12:36:18 +11:00
Beaudan Campbell-Brown deedcc1d64
Merge pull request #606 from BeaudanBrown/contact-sync
[multi-device]Contact syncing
2019-11-12 14:14:54 +11:00
sachaaaaa 843c5b5ebc Fix contact status in createContactSyncProtoMessage 2019-11-11 11:36:23 +11:00
Beaudan Brown 370dee5abb Ensure we have the correct apis and listeners during the pairing process. Catch upnp error. Remove redundant friend requests 2019-11-08 14:29:24 +11:00
Beaudan Brown c31535edb4 Rename blockSync, only send contacts and profile if sending a GRANT request, do *not* always be friends with secondary devices because we still need to complete a friend request exchange 2019-11-08 11:00:32 +11:00
Beaudan Brown 332cd30052 Send contact sync message when becoming friends with contact and auto accept/send friend requests when receiving contact sync 2019-11-07 14:12:37 +11:00
Mikunj f61de2cf8e Use first 3 mnemonic words instead of the last 3. 2019-11-07 10:07:47 +11:00
Beaudan Campbell-Brown 0f74a002df
Merge pull request #601 from BeaudanBrown/sync-messages
[multi-device] Sync messages
2019-11-06 16:22:06 +11:00
Beaudan Brown 15c07ea7df Sync secondary devices again but handle the receiving of them properly 2019-11-06 16:09:38 +11:00
Mikunj f87c9d2222 Fix up numbers in pairing type. 2019-11-06 15:22:32 +11:00
Beaudan Brown 7e275ac266 Don't sync secondary devices and make sure initAPIs has been called before sending friend requests to synced contacts 2019-11-04 17:11:53 +11:00
Beaudan Brown f16b032056 Handle sync messages properly for some edge cases, ensure we always have a primaryDevicePubKey, send contact sync message 2019-11-04 15:50:51 +11:00
sachaaaaa 9ddc237f6d show pairing words instead of pubkeys on the primary device's paired devices list. 2019-11-01 11:14:56 +11:00
Beaudan Brown 94b0faf2aa Remove (hopefully) last place the type of a pairing request is being checked 2019-10-30 16:53:12 +11:00
Beaudan Campbell-Brown 8235662518
Merge pull request #589 from Mikunj/pairing-fix
Fix cross platform device linking
2019-10-30 15:37:44 +11:00
Mikunj 589b3f3233 Infer pairing message type from the content.
This should fix device pairing cross platform.
2019-10-29 15:51:40 +11:00
Beaudan Brown 883feb668d The rest of my multidevice work, send messages to all the correct devices and automatic friend request if not friends with a device 2019-10-28 16:48:06 +11:00
Beaudan Campbell-Brown 17e70bf81c
Merge branch 'multi-device' into is-secondary-device 2019-10-28 15:48:48 +11:00
Beaudan Brown 08ad913105 Add explicit isSecondary flag to conversation list items so they can remain hidden in the menu after they become friends etc 2019-10-28 12:17:21 +11:00