Commit graph

275 commits

Author SHA1 Message Date
Niels Andriesse 597b7f157c Move file 2020-02-28 09:04:57 +07:00
Niels Andriesse fb9567a61b Merge branch 'dev' into open-group-syncing 2020-02-28 08:56:37 +07:00
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
Mikunj 55523b3baf Added open group syncing.
Refactor open group adding code.
2020-02-25 12:46:23 +11:00
Niels Andriesse 5b822f83c9 Enforce style convention 2020-02-21 11:19:20 +07:00
Mikunj 7f51baadd4 Sync groups upon linking device. 2020-02-18 09:19:52 +11:00
Niels Andriesse 526e82a9e3 Clean up naming & indentation 2020-02-16 09:30:05 +11:00
Mikunj 3bbcbc8873 Updated to follow LokiSessionResetProtocol.
Refactor some code to be less confusing.
2020-02-14 13:34:35 +11:00
Niels Andriesse bcc219bd1f Debug 2020-02-13 16:05:40 +11:00
Niels Andriesse 07b1ffa77e Refactor multi device 2020-02-13 14:39:29 +11:00
Niels Andriesse 9c71a4c3cd Simplify PushDecryptJob a bit 2020-02-13 10:18:05 +11:00
Niels Andriesse 27fdfe4ee8 Trim unused files 2020-02-13 09:28:19 +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 155c7f2b12 Merge branch 'dev' of github.com:loki-project/loki-messenger-android into private-group-chat 2020-02-04 13:23:23 +11:00
Mikunj 5183a76575 Minor bug fixes 2020-02-04 12:58:34 +11:00
Mikunj db9f26d9df Map text & media group messages from secondary deivces to their primary device 2020-02-04 11:46:50 +11:00
Mikunj 60aa7f6ae3 Fix friend request accept message showing up in group chats.
Fix crash.
2020-02-03 12:08:11 +11:00
Mikunj 353f456ae2 Accept session request if it was sent by a member of our group or if it was sent by one of our friends. 2020-02-03 10:52:15 +11:00
Niels Andriesse 1e788b337f Clean 2020-02-01 07:58:32 +11:00
Mikunj a7ea2f01a2 Don't use envelope to determine friend request 2020-01-31 16:15:04 +11:00
Mikunj 73ec256745 Merge branch 'dev' into private-group-chat 2020-01-31 15:33:59 +11:00
Mikunj 81b4259dab Merge branch 'dev' into private-group-chat 2020-01-31 15:29:31 +11:00
Mikunj 8aa46aebec Merge branch 'dev' into sealed-sender 2020-01-31 14:32:30 +11:00
Niels Andriesse d7f1b86615 Remove legacy code 2020-01-31 12:50:25 +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
Niels Andriesse 2ea009b05b Clean 2020-01-28 10:52:06 +11:00
Niels Andriesse e3c54c21d1 Merge branch 'dev' into session-restore 2020-01-28 10:36:46 +11:00
Niels Andriesse b5cca49b54 Background poll for group messages 2020-01-22 11:57:16 +11:00
Niels Andriesse 5891f19996 Fix push notification bug 2020-01-21 10:10:36 +11:00
Mikunj 93a9f4c1dc Handle SessionRequest messages. 2019-12-13 16:04:24 +11:00
Mikunj 33788189dd Distinguish public chat and rss feed from regular groups 2019-12-12 13:01:56 +11:00
Mikunj 97cde203ca minor fix 2019-12-11 15:14:29 +11:00
Mikunj 3d574be931 Clean.
Removed recipient cache as signal already had that.
Removed message cache as it messes with the ui (public chat conversations pop in with all the messages)
2019-12-09 13:52:21 +11:00
Mikunj b44ff69d8d Fix banner display 2019-12-09 10:39:33 +11:00
Mikunj 97ffea040f Move session restore prompt from message level to conversation level. 2019-12-09 09:15:25 +11:00
Mikunj 0caeb3a109 Handle session restoration. 2019-12-06 11:35:10 +11:00
Mikunj ba93fdd649 Only show one session reset prompt at a time 2019-12-05 13:18:33 +11:00
Mikunj e285ede03d Ignore friend request messages before restoration, 2019-12-05 12:10:29 +11:00
Mikunj 5e5309d07e Trigger session reset if we got a new friend request from one of our friends. 2019-12-04 12:44:34 +11:00
Mikunj 280d866df3 Public chat avatar handling.
Fix note to self.
2019-11-28 15:26:02 +11:00
Mikunj 6e7b21e8b4 Multi-device profile avatar. 2019-11-28 10:51:27 +11:00
Mikunj a852b019aa Enable profile sharing upon becoming friends with a contact. 2019-11-27 15:25:53 +11:00
Mikunj ee00241515 Rotate profile key on every new upload.
Only fetch profile if avatar if profile key changed.
2019-11-27 13:17:31 +11:00
Mikunj 7b842d2c1c Added profile downloading. 2019-11-27 13:17:31 +11:00
Mikunj 826142a07b Move loki db writes to background so that decrypt thread doesn't get blocked. 2019-11-27 12:47:53 +11:00
Mikunj c25e0fded9 Add timeout to blocking promises.
Don't prematurely store PreKeyBundle from a pairing authorisation.
Don't re-create ids needed for pre-key generation
2019-11-22 15:42:03 +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