Mikunj
85b2379510
Fix race condition that occurs on device link authorisation.
...
Upon authorisation, we upload our mapping to the server.
At the same time we also get a contact sync message and send out background friend request messages.
There was a race condition between those 2 functions where to correctly establish multi-device communication, you need your mapping on the server so that the other party knows that it's a secondary device and not a regular user.
2020-02-26 11:53:28 +11:00
Niels Andriesse
5b822f83c9
Enforce style convention
2020-02-21 11:19:20 +07:00
Mikunj
70bd9350b8
Ensure generated PreKeyBundle is valid
2020-02-18 12:28:49 +11:00
Niels Andriesse
07b1ffa77e
Refactor multi device
2020-02-13 14:39:29 +11:00
Niels Andriesse
45d78825a0
Clean
2020-02-12 16:25:14 +11:00
Niels Andriesse
705b3dc625
Refactor
2020-02-12 13:27:28 +11:00
Niels Andriesse
b5792a81aa
Update for core changes
2020-02-11 09:38:05 +11:00
Niels Andriesse
67cc92d983
Remove Mixpanel
2020-01-31 16:18:03 +11:00
Mikunj
62d391085b
Stop relying on SignalServiceEnvelope and instead use SignalServiceContent to determine message sender and friend request
2020-01-30 10:07:29 +11:00
Mikunj
6e7b21e8b4
Multi-device profile avatar.
2019-11-28 10:51:27 +11:00
Mikunj
27c8b45ae3
Show device unlink message on startup.
2019-11-22 10:43:22 +11:00
Mikunj
733ab06e70
Clear database on unpair.
2019-11-22 10:02:02 +11:00
Mikunj
3a79e1f215
Handle unpair request flag.
2019-11-21 12:43:33 +11:00
Mikunj
d1289ec7bd
Refactoring.
2019-11-14 12:00:46 +11:00
Mikunj Varsani
a90b0e70f5
Fix conversation input.
2019-11-13 16:05:37 +11:00
Mikunj Varsani
12639b491f
Sync all contacts with only a specific device.
...
This may fix the issue where the sync message sending queue gets blocked because of sending full contact syncs to all devices.
2019-11-11 14:11:32 +11:00
Mikunj
aea686c856
Only handle friend requests for direct chats.
2019-11-08 10:38:17 +11:00
Mikunj
55ecd3cae4
Add a job for sending a background message.
...
Send a friend request background message to other linked devices upon accepting a friend request.
2019-11-08 10:20:11 +11:00
Mikunj
ce265f29fd
Handle received contact sync message
2019-11-06 16:08:34 +11:00
Mikunj
6f2a6f7f94
Sync contact upon accepting friend request
2019-11-06 16:08:34 +11:00
Mikunj
7df3393e23
Sync contacts upon pairing a secondary device.
2019-11-06 16:08:34 +11:00
Mikunj
92580a0dd9
Fixed up contact sync sending to use the correct field in protobuf.
2019-11-06 16:08:34 +11:00
Mikunj
96fa96f5c1
Fix sync message sending.
2019-11-06 16:08:20 +11:00
Mikunj
ed6ca6a64a
We should automatically become friends with a contact if we are friends with one of their other devices.
2019-11-06 13:40:55 +11:00
Mikunj
c223e087f6
Don't block thread when retrying.
2019-11-01 15:49:26 +11:00
Mikunj
789aa244b5
Use promises instead of blocking the thread.
2019-11-01 14:29:43 +11:00
Mikunj
31ad7a40de
Stop main thread from being blocked.
...
Refactoring.
2019-10-31 11:36:52 +11:00
Mikunj
7ff7c36e27
Cleanup code.
2019-10-30 09:59:11 +11:00
Mikunj
10ec395915
Correctly update UI when an outgoing friend request is accepted from a secondary device.
2019-10-29 12:13:22 +11:00
Mikunj
9ea2a6c8e4
More fixes for friend request UI for multi device.
...
Remove old FR pending states on new incoming friend request.
Always update the last friend request message state and not a new message.
2019-10-29 11:27:08 +11:00
Mikunj
09f5f50af4
Don't render friend requests if we are already friends with a users linked device.
2019-10-29 10:06:01 +11:00
Mikunj
efad14fcdc
Message syncing.
2019-10-25 14:08:30 +11:00
Mikunj
98cfd93b97
Enable note to self.
...
Fix note to self crashing.
2019-10-24 15:38:13 +11:00
Mikunj
24ae0c640b
Handle friend requests correctly.
2019-10-24 12:17:58 +11:00
Mikunj
1c1685ae9d
Fix multidevice.
...
Fix authorisation grant not being sent.
2019-10-24 10:30:53 +11:00
Mikunj
d58364c9b0
Disable input if we have a pending request to any other linked device and we're not friends with any of them
2019-10-23 15:31:58 +11:00
Niels Andriesse
ac9c9f534e
Somewhat simplify device linking UI
2019-10-08 14:28:30 +11:00
Niels Andriesse
bf958fffe1
Partially disable settings for slave devices
2019-10-08 12:17:25 +11:00