Commit graph

995 commits

Author SHA1 Message Date
Maxim Shishmarev 5123fa0409
Merge pull request #669 from msgmaxim/restoration
Prompting the user to reset session on invalid ciphertext
2019-12-05 10:06:48 +11:00
sachaaaaa a29f0a4120 encrypted pictures for public chats 2019-11-29 15:15:05 +11:00
sachaaaaa 0122fb8603 handle SYNC messages 2019-11-29 15:15:05 +11:00
sachaaaaa b0122b6ce6 Ensure the primary profile is used on secondary devices 2019-11-29 15:15:05 +11:00
sachaaaaa 7c52a1d038 encrypt and decrypt images before upload and after download 2019-11-29 15:15:05 +11:00
Maxim Shishmarev 81bfa90943 Prompting the user to reset session on invalid ciphertext 2019-11-28 14:05:11 +11:00
Maxim Shishmarev 2ab0d084f1
Merge pull request #645 from msgmaxim/group-invites
Public chat invitations
2019-11-25 16:29:02 +11:00
sachaaaaa 516b463d2e
Merge pull request #641 from sachaaaaa/pairing_revocation
Sending and handling of special UNPAIRING_REQUEST message
2019-11-25 10:03:11 +11:00
Maxim Shishmarev 8ea82b14e3 Add channel id field to invitations 2019-11-25 10:02:24 +11:00
Maxim Shishmarev a5fce17d8c public chat invitations 2019-11-22 16:16:43 +11:00
sachaaaaa 3d22abc9cf Ensure message is not FR 2019-11-22 11:20:36 +11:00
sachaaaaa e0dc04cba5
Merge pull request #639 from sachaaaaa/fix_prekey_id_not_found
Prevent prekeys to be deleted when re-sending pairing request
2019-11-21 16:20:00 +11:00
sachaaaaa db0068b429 Sending and handling of special UNPAIRING_REQUEST message 2019-11-21 13:50:18 +11:00
sachaaaaa 3d7548729f Prevent prekeys to be deleted when re-sending pairing request 2019-11-20 15:43:14 +11:00
Maxim Shishmarev 5a08ac9cc1 Use avatar specific endpoint 2019-11-20 13:49:57 +11:00
Maxim Shishmarev 4dd314c18f Enable profile pictures 2019-11-18 17:34:41 +11:00
Beaudan Brown 56a1c31bf4 Ensure we can still send messages to ourselves (sync) and disable group chats 2019-11-15 13:26:31 +11:00
Beaudan Brown 685ada5cc5 Merge branch 'clearnet' into prep-merge 2019-11-15 12:31:40 +11:00
Beaudan Brown 030264c689 Fix misuse of getAllDevicePubKeysForPrimaryPubKey and rename some vars 2019-11-13 12:39:42 +11:00
Beaudan Brown bce18b7ae6 Revert change so we are always friends with our secondary devices, check validSyncSender from primary pubkey rather than ourNumber 2019-11-13 12:36:23 +11:00
Beaudan Brown 74045d58d7 Use Int32 for the contact list buffer 2019-11-13 12:36:18 +11:00
Beaudan Campbell-Brown 6611a10855
Merge pull request #590 from BeaudanBrown/session-reset-on-fr
Session reset on fr
2019-11-12 14:24:46 +11:00
Beaudan Brown 1c022856b1 Address review 2019-11-12 09:28:30 +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
Beaudan Campbell-Brown e88aca57f2
Merge pull request #603 from sachaaaaa/Fix_secondary_nickname
[multi-device] Fix secondary nickname
2019-11-06 16:22:40 +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 accd16cae1 Trigger friend request received update for the correct device conversation, throttle the sending of automated friend requests and don't send them to devices which sent *us* a friend request 2019-11-06 14:28:13 +11:00
Beaudan Brown 41fdcef695 Ensure that we can't miss the apisReady event and only listen for single emit 2019-11-06 14:21:56 +11:00
sachaaaaa dc626ec4d0 use primary device pubkey when setting nickname 2019-11-06 13:07:29 +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
Beaudan Brown 722c10dd70 Verify that incoming sync messages are from one of our devices, don't send messages to ourselves 2019-11-04 12:04:56 +11:00
Beaudan Brown 4aaa9ba26d Update sendSyncMessage to use primary pubkey and don't send to itsself, don't send typing messages for primary conversation (note to self) 2019-11-04 12:00:24 +11:00
Maxim Shishmarev 7c05939f55 Add group admins and the ability to remove members from private groups 2019-11-01 12:00:29 +11:00
Maxim Shishmarev cf18572049 Adding new group members; establishing sessions between non-friends 2019-11-01 11:57:49 +11:00
Maxim Shishmarev 0d19b708f9 Creating private group chats between friends 2019-11-01 11:57:49 +11:00
Beaudan Brown e9dc3b531e Simplify auto accept check 2019-10-30 16:39:27 +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
Beaudan Brown 8ccf62ed4e Trigger endSession code if we receive a friend request from a friend 2019-10-30 15:00:26 +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 72b60077c7 Give a simple error instead of logging a failed null check 2019-10-29 12:20:04 +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 aa66b28ffe
Merge pull request #579 from BeaudanBrown/friends-with-any
Add isFriendsWithAnyDevice and use it in relevant places
2019-10-28 16:46:42 +11:00
Beaudan Brown 76b36845bb Add isFriendsWithAnyDevice and use it in relevant places 2019-10-28 14:03:44 +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
Beaudan Brown d97eced37b Merge branch 'clearnet' into multi-device 2019-10-23 16:34:56 +11:00
Beaudan Brown 638f1c0e6c Bringing together all the stuff for attachments and link previews 2019-10-22 13:37:39 +11:00
Beaudan Brown f0c198c7b7 Split uploadData to public and private 2019-10-22 13:36:30 +11:00