Mikunj
a57bf0cd98
Remove un-used permissions.
2020-02-27 15:44:57 +11: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
70bd9350b8
Ensure generated PreKeyBundle is valid
2020-02-18 12:28:49 +11: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
1fb7081fa2
Fix open group message sending
2020-02-05 10:08:57 +11:00
Mikunj
a1e98bae75
Fix crash.
2020-02-04 14:52:25 +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
cc369f5c52
Fix message syncing in group chats
2020-02-04 10:09:32 +11:00
Niels Andriesse
621ff9c6e3
Remove Signal request
2020-02-04 09:53:10 +11:00
Mikunj
44a0a428f5
Don't send a friend request message to a group.
2020-02-03 13:53:58 +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
5fa6e5a75c
Enable sealed sender by default
2020-01-30 10:07:29 +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
01f5ff7c86
Fix up build gradle.
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
538cd39d00
Send group messages to members and their secondary devices.
2019-12-13 12:23:06 +11:00
Mikunj
b6d2717286
Added admins to groups.
...
Only process group updates if an admin sent it.
2019-12-13 11:04:37 +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
Niels Andriesse
5a8f0dda9d
Merge branch 'profile-avatar-setting' of github.com:loki-project/loki-messenger-android into profile-avatar-setting
2019-12-02 15:03:20 +11:00
Niels Andriesse
f8464a1462
Fix up UI
2019-12-02 15:03:12 +11:00
Mikunj
00856857d7
Fix avatar downloads on public chats.
2019-12-02 15:02:31 +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
050849d302
Wrapped envelope handing code inside a try-catch.
2019-11-22 15:53:46 +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
Mikunj
3a79e1f215
Handle unpair request flag.
2019-11-21 12:43:33 +11:00
Mikunj
dc40ff0548
Only update display name from received message if the user is not one of our devices.
2019-11-20 11:59:18 +11:00
Mikunj Varsani
291fb7f7ad
Fix display name not being set correctly once we pair with a device.
2019-11-19 09:03:32 +11:00
Niels Andriesse
cfe321b248
Merge branch 'dev' of github.com:loki-project/loki-messenger-android into dev
2019-11-18 11:31:47 +11:00
Niels Andriesse
573aabdd52
Fix copy
2019-11-18 11:31:19 +11:00
Mikunj
d0a828985a
Fix placeholder messages showing in the wrong conversation.
2019-11-18 10:03:59 +11:00
Mikunj
463aaf0fb8
Fix processing of outgoing attachment messages in public chats.
...
Before we were directly inserting messages into the database but that wasn't working because attachments never got downloaded. This fixes it so we forcefully go through signals pipeline via self sync messages.
2019-11-15 11:44:12 +11:00
Mikunj
55ea9869a8
Hook up http cache to LokiDotNetAPI.
2019-11-15 09:33:30 +11:00
Mikunj
d1289ec7bd
Refactoring.
2019-11-14 12:00:46 +11:00
Mikunj
44ccc66ec2
Fix multi-device media messages.
...
This fixes the issue of the same attachments being uploaded multiple times per linked device. Now we only upload the attachments once and then we send the media message.
2019-11-14 10:44:55 +11:00
Mikunj Varsani
9c243eed75
Correctly redirect typing messages and receipts.
...
Send an accept message back after becoming friends with a contact during contact sync.
2019-11-13 14:53:42 +11:00
Mikunj Varsani
41e0934dd4
Only update thread friend request status on message send if we haven't sent a previous request.
...
Always send self sync messages to our primary device.
Cache conversation input enabled so that subsequent calls don't cause it to flicker.
2019-11-13 12:28:17 +11:00
Mikunj Varsani
5c1ec4c06d
Fix contact sync caused decryption lock to never release.
...
Fix message
2019-11-13 11:32:33 +11:00
Mikunj
7c4e7f261d
Fix contact sync message parsing in pairing authorisation.
2019-11-12 16:30:28 +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
9541588383
Fix up syncing all contacts.
...
We were looking up contact from the phone book which we had no access to.
2019-11-06 16:08:34 +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
92580a0dd9
Fixed up contact sync sending to use the correct field in protobuf.
2019-11-06 16:08:34 +11:00
Mikunj
b8818cbce4
Fix quotes in public group chats
2019-11-04 08:44:19 +11:00
Mikunj
789aa244b5
Use promises instead of blocking the thread.
2019-11-01 14:29:43 +11:00
Mikunj
d7571d237a
Skip friend request handling if we received a group message.
2019-10-31 12:12:20 +11:00
Mikunj
7ff7c36e27
Cleanup code.
2019-10-30 09:59:11 +11:00
Mikunj
3298d665e9
Fix note to self message syncing.
...
Don't send messages if we're sending to ourselves, instead we just send a regular sync message.
2019-10-29 14:29:09 +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
26800cba82
Send a background message to all devices upon manually accepting a friend request.
2019-10-25 15:21:19 +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
21e529c6c9
Forward messages from secondary devices to primary device.
2019-10-23 15:31:58 +11:00
Niels Andriesse
4aa1eed979
Debug
2019-10-22 10:09:46 +11:00
Niels Andriesse
17ee4bf7a8
Ditch temporary link preview setup
2019-10-22 09:46:47 +11:00
Mikunj
0421794b41
Limit upload retries.
2019-10-22 08:41:57 +11:00
Mikunj
e438d09a62
Update attachments for public group chats.
2019-10-21 13:49:38 +11:00
Mikunj
fd9f1b712f
Get attachment logic to work.
2019-10-18 12:47:44 +11:00
Mikunj
c6f5adb447
Update attachments to use url.
2019-10-17 12:03:08 +11:00
Niels Andriesse
4a613df52d
Clean
2019-10-15 14:32:23 +11:00
Niels Andriesse
65f95839d9
Fix build
2019-10-15 13:51:18 +11:00
Niels Andriesse
08a1b0e947
Merge branch 'dev' of github.com:loki-project/loki-messenger-android into custom-server
2019-10-15 13:42:44 +11:00
Niels Andriesse
a8c4fa22a3
Partially fix build
2019-10-15 13:39:17 +11:00
Niels Andriesse
e423ec8848
Change mentions approach
2019-10-11 16:37:28 +11:00
Mikunj
2f18c5bad2
Merge branch 'dev' into custom-server
...
# Conflicts:
# src/org/thoughtcrime/securesms/loki/DisplayNameActivity.kt
2019-10-11 15:40:09 +11:00
Mikunj
4657b79179
UI improvements.
2019-10-11 15:38:15 +11:00
Mikunj
13d42f542c
Added public chat manager.
...
Replace hard coded public chat server with dynamic one.
2019-10-11 09:36:52 +11:00
Niels Andriesse
25bd1073b0
Pre-populate user ID cache as needed
2019-10-10 10:39:56 +11:00
Niels Andriesse
a44c3fcd57
Clean
2019-10-08 14:10:16 +11:00
Niels Andriesse
bf958fffe1
Partially disable settings for slave devices
2019-10-08 12:17:25 +11:00
Mikunj
98498a66aa
Fix receiving multiple of the same authorisations at once causing us to delete prekeybundles for the user.
2019-10-08 10:11:46 +11:00
Niels Andriesse
79ec4553aa
Clean
2019-10-07 16:53:26 +11:00
Niels Andriesse
19ec4db687
Update for core changes
2019-10-07 15:30:20 +11:00
Mikunj
4f46c6317b
Renaming.
2019-10-07 13:28:53 +11:00
Mikunj
0bfa3c33c7
Multi-device sending media message
2019-10-07 10:14:38 +11:00
Mikunj
8a3b4a6a14
Refactor.
2019-10-07 09:44:43 +11:00
Mikunj
fb3967db55
Multi-device sending text messages.
2019-10-04 16:29:51 +10:00
Mikunj
8e495d087b
Fix bugs in multi device pairing.
2019-10-03 16:02:22 +10:00
Mikunj
be9afa243c
Fix auto accept friend request logic.
2019-10-03 10:05:50 +10:00
Mikunj
e07d8ddb52
Fix ui not being dismissed on message send failure.
...
Fix prekey bundle not being sent with the device pairing request.
2019-10-02 15:28:36 +10:00
Mikunj
80e9b8223a
Hooked up dialog ui
2019-10-01 15:35:52 +10:00
Mikunj
dde4ee6e36
Merge branch 'dev' into multi-device-integration
2019-09-30 12:21:04 +10:00
Mikunj
10c1a9cced
Added linking in the ui.
2019-09-26 11:19:36 +10:00
Mikunj
7d1883cfd2
Trigger event when authorisation is accepted.
2019-09-26 10:04:21 +10:00
Mikunj
0b49d7ae0d
Fix crashing during start.
2019-09-25 15:08:01 +10:00
Mikunj Varsani
203348b8fb
Update device mappings on the file server upon receiving a pairing confirmation.
2019-09-24 16:06:19 +10:00
Mikunj Varsani
8acc0bcff9
Auto accept friend requests if we're friends with the primary device.
2019-09-24 15:02:23 +10:00
Mikunj Varsani
d51c62ecaf
Moved LokiMultiDeviceDatabase into LokiAPIDatabase.
2019-09-24 13:33:42 +10:00
Mikunj
90ee676a53
Hookup receiving logic.
2019-09-23 15:38:00 +10:00
Niels Andriesse
3a257d745b
Debug
2019-09-19 14:06:54 +10:00
Niels Andriesse
96dadbaaa8
Handle media message friend requests
2019-09-18 17:33:34 +10:00
Niels Andriesse
a78b8a77b6
Clean
2019-09-18 10:00:18 +10:00
Niels Andriesse
74dfac6fd1
Implement GIF sending
2019-09-17 11:46:47 +10:00
Niels Andriesse
df36d5e539
Handle case where GIF fetch fails
2019-09-17 10:36:34 +10:00
Niels Andriesse
bdb950373a
Partially implement GIFs
2019-09-16 16:11:07 +10:00
Mikunj
3dba87198a
Fix messages infinitely sending.
...
This was because signal infinitely tries to send message on network errors. Since we already have retrying built into the loki api we just disable this behaviour and set a cap of 3 on PushSendJobs incase.
2019-09-13 11:56:36 +10:00
Niels Andriesse
7cf543bdf8
Fix typo
2019-09-12 12:06:45 +10:00
Niels Andriesse
cbb7f9827c
Include public key with display names
2019-09-12 11:52:03 +10:00
Niels Andriesse
52b55652c8
Clean
2019-09-12 09:59:15 +10:00
Niels Andriesse
3b242e7435
Merge branch 'dev' of github.com:loki-project/loki-messenger-android into bug-fixes
...
# Conflicts:
# src/org/thoughtcrime/securesms/jobs/PushDecryptJob.java
2019-09-12 09:46:12 +10:00
Niels Andriesse
88a5b7a87f
Implement quotes in group chats
2019-09-11 15:52:32 +10:00
Mikunj
a683c3fa90
Disable notification triggers on group messages.
2019-09-11 09:29:29 +10:00
Mikunj
9d8de789d7
Fixed link preview messages not being deleted in group chats.
2019-09-11 09:29:29 +10:00
Niels Andriesse
1859a22419
Debug
2019-09-10 11:09:31 +10:00
Niels Andriesse
869c06e71a
Clean
2019-09-10 09:52:43 +10:00
Niels Andriesse
e109df7525
Implement link previews for group conversations
2019-09-09 16:31:28 +10:00