Commit Graph

402 Commits

Author SHA1 Message Date
Niels Andriesse
f4360bddc7 Implement message status bar 2020-01-16 14:35:51 +11:00
Niels Andriesse
eda21064a4 Implement mute UI 2020-01-16 11:48:49 +11:00
Niels Andriesse
bfb6435d72 WIP 2020-01-15 12:20:10 +11:00
Niels Andriesse
9776420135 WIP 2020-01-14 16:05:31 +11:00
Niels Andriesse
52dc8d6b63 WIP 2020-01-14 10:27:17 +11:00
Niels Andriesse
c05c1eecd8 Implement input bar redesign 2020-01-10 16:35:32 +11:00
Niels Andriesse
4f9b5f06f0 Start implementing conversation screen redesign 2020-01-10 11:35:16 +11:00
Niels Andriesse
7424684c75 Implement linked devices screen redesign 2020-01-09 15:52:40 +11:00
Niels Andriesse
a55d5b9263 Implement detailed settings screen redesign 2020-01-09 14:15:43 +11:00
Niels Andriesse
8a5307000b Update app icon & implement recovery phrase screen 2020-01-09 11:35:43 +11:00
Niels Andriesse
df61cbb30d Partially implement device linking redesign & fix copy 2020-01-08 15:16:34 +11:00
Niels Andriesse
7da4f1f6ae Fix conversation deletion & public chat joining 2020-01-08 10:50:11 +11:00
Niels Andriesse
fb3bd26538 WIP 2020-01-07 16:44:53 +11:00
Niels Andriesse
b80d70c31f Implement clear all data dialog redesign 2020-01-07 16:11:02 +11:00
Niels Andriesse
7f1359c6d3 Implement seed dialog redesign 2020-01-07 15:59:18 +11:00
Niels Andriesse
15b4c6aacc Implement profile picture editing 2020-01-07 14:51:11 +11:00
Niels Andriesse
fd14d66d4f Implement display name editing 2020-01-07 12:00:30 +11:00
Niels Andriesse
9dee062976 Clean 2020-01-07 10:52:50 +11:00
Niels Andriesse
23770f79a9 Fix QR code sharing 2020-01-07 09:35:14 +11:00
Niels Andriesse
7f0cda3b75 WIP 2020-01-06 16:43:47 +11:00
Niels Andriesse
b56d19e865 Implement QR code screen redesign 2020-01-06 16:05:57 +11:00
Niels Andriesse
c76335150c Implement settings screen redesign 2020-01-06 14:26:52 +11:00
Niels Andriesse
1616e841da Customize main toolbar 2020-01-06 12:07:55 +11:00
Niels Andriesse
ed20a96ed0 Fix profile picture view 2020-01-06 10:18:43 +11:00
Niels Andriesse
9f4f0d4f4b WIP 2019-12-19 16:10:11 +01:00
Niels Andriesse
4bfb51e6e2 Fix updating 2019-12-19 11:49:23 +01:00
Niels Andriesse
ded709a58b Hook up home screen logic 2019-12-19 11:15:58 +01:00
Niels Andriesse
95dc4e6590 Implement join public chat screen redesign 2019-12-18 15:25:23 +01:00
Niels Andriesse
6dbe9b0ca9 Hook up new private chat screen redesign logic 2019-12-18 14:31:12 +01:00
Niels Andriesse
bb976a4bff Implement new private chat screen redesign 2019-12-18 11:36:09 +01:00
Niels Andriesse
f8737c3f81 Clean 2019-12-17 16:58:50 +01:00
Niels Andriesse
5c2b33bfdc Implement profile picture view 2019-12-17 16:24:42 +01:00
Niels Andriesse
a2776cde0f Partially hook up home screen logic 2019-12-17 15:15:13 +01:00
Niels Andriesse
a10c056ac5 Implement rough home screen redesign 2019-12-17 14:27:59 +01:00
Niels Andriesse
d4db46aeca Hook up onboarding logic 2019-12-17 10:04:08 +01:00
Niels Andriesse
f42e69388e Clean 2019-12-16 21:13:10 +01:00
Niels Andriesse
8b640251b7 Polish 2019-12-16 17:09:10 +01:00
Niels Andriesse
3a91280b40 Implement fake chat view 2019-12-16 16:20:48 +01:00
Niels Andriesse
e46e1b2dd9 Implement rough onboarding redesign 2019-12-16 11:43:08 +01:00
Mikunj
93a9f4c1dc Handle SessionRequest messages. 2019-12-13 16:04:24 +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
23a5fa7580 Let user know when members have been removed from the group. 2019-12-13 09:05:18 +11:00
Mikunj
33788189dd Distinguish public chat and rss feed from regular groups 2019-12-12 13:01:56 +11:00
Mikunj
338149b7a4 Clean up my code. 2019-12-09 13:55:54 +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
151e97c82e Clean 2019-12-09 11:50:22 +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
fd2dc678ea Show custom message on no session message.
Made a no session message an update message.
2019-12-05 15:40:55 +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
12e07bc5bb Merge branch 'dev' into performance 2019-12-04 13:34:54 +11:00
ryanzhao
66d87533d3 add cache for Addresses and Messages.
make multiple insertion into one transaction.
2019-12-04 11:28:12 +11:00
Mikunj
a5bf5c0f5d Set profile picture upon joining a public chat. 2019-12-03 15:05:43 +11:00
Niels Andriesse
f8464a1462 Fix up UI 2019-12-02 15:03:12 +11:00
Mikunj
b4a81bf937 Update create table command because it might exist already. 2019-12-02 13:29:12 +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
5038dec3d1 Fix up profile picture display. 2019-11-27 13:17:31 +11:00
Mikunj
06f75859fa Removed custom profile avatar url table since signal already has an existing one.
Clean
2019-11-27 13:17:31 +11:00
ryanzhao
5a4b619c9d try to store avatar url locally 2019-11-27 13:17:31 +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
b650ee6ebc Added QR code scanning. 2019-11-22 12:53:47 +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
c66786e0f1 Allow users to edit device name. 2019-11-21 10:50:33 +11:00
Mikunj
b61b4c581d Add bottom sheet dialog 2019-11-21 10:32:26 +11:00
Mikunj
d96664cb6a Remove textbox in linking dialog. 2019-11-20 16:22:17 +11:00
Mikunj
28a04f13af Refactor.
Add text field to authorise dialog.
2019-11-20 14:55:42 +11:00
Mikunj
ba78fcb9b1 Move device linking logic into LinkedDeviceActivity. 2019-11-20 11:44:44 +11:00
Mikunj
0f5db5aa33 Hook up signal device linking view. 2019-11-20 11:20:45 +11:00
Niels Andriesse
8ccfa77ef6 Fix threading 2019-11-18 16:35:57 +11:00
Niels Andriesse
045e4be2f0 Partially undo threading changes 2019-11-18 15:10:40 +11:00
Niels Andriesse
5da4892d9d Ensure UI updates happen on the main thread 2019-11-18 13:19:25 +11:00
Niels Andriesse
638d693e11 Clean 2019-11-18 13:12:57 +11:00
Mikunj
8eedff81eb Async everything! 2019-11-18 11:55:16 +11:00
Mikunj
457faae5a5 Added public chat server profile name batch polling. 2019-11-18 11:33:18 +11:00
gmbnt
4f1beeaa88
Merge pull request #39 from loki-project/multi-device-stage-2
[Stage 2] Multi device
2019-11-15 16:25:56 +11:00
Niels Andriesse
30df89ea58 Fix critical issues 2019-11-15 16:24:58 +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
848cab8677 Handle incoming messages from our other devices in public chats. 2019-11-15 09:58:13 +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
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
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
ddafcf4530 Fix device linking blocking UI 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
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
bdc0ed36eb Process public chat messages in a background thread and not the promise thread. 2019-10-31 13:20:07 +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
bb0ac32540 Correctly reset prekeys for linking. 2019-10-24 14:17:12 +11:00
Mikunj
24ae0c640b Handle friend requests correctly. 2019-10-24 12:17:58 +11:00
Niels Andriesse
9fc43cb16d Enable incognito keyboard by default 2019-10-24 10:38:51 +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
Mikunj
f24b191164 Re-enable multi-device 2019-10-23 15:31: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
2d28707687 Switch over to new link preview system 2019-10-22 09:39:42 +11:00
Niels Andriesse
6d0858cf35 Limit allowed characters in display names 2019-10-21 16:28:05 +11:00
Niels Andriesse
f7e01688b0 Disable device linking for now 2019-10-21 15:35:52 +11:00
Niels Andriesse
a978253e00 Fix indentation 2019-10-21 15:26:57 +11:00
Mikunj
e438d09a62 Update attachments for public group chats. 2019-10-21 13:49:38 +11:00
Niels Andriesse
cbad885586 Add missing display name update & message fetch 2019-10-15 16:06:38 +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
Niels Andriesse
0f364fcea7 Render mentions in previews & refactor 2019-10-11 14:41:43 +11:00
Niels Andriesse
48d282a864 Require the user to pick a display name 2019-10-11 13:37:56 +11:00
Mikunj
b676c25930 Add UI 2019-10-11 11:53:53 +11:00
Niels Andriesse
7ea349ff00 Mention by display name rather than hex encoded public key 2019-10-11 11:13:34 +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
f0224f8ec6 Debug 2019-10-10 15:30:34 +11:00
Niels Andriesse
25f1405512 Show user selection view dynamically 2019-10-10 14:44:08 +11:00
Niels Andriesse
9207e479a6 Implement user selection view 2019-10-10 13:53:02 +11:00
Mikunj
8b92932b6d Added database functionality. 2019-10-10 11:03:51 +11:00
Niels Andriesse
25bd1073b0 Pre-populate user ID cache as needed 2019-10-10 10:39:56 +11:00
Niels Andriesse
5901967eee Implement mention rendering 2019-10-10 09:42:40 +11:00
Niels Andriesse
ac9c9f534e Somewhat simplify device linking UI 2019-10-08 14:28:30 +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
Niels Andriesse
d0e5ddfe3f WIP 2019-10-08 10:43:09 +11:00
Niels Andriesse
a6441005ea Merge branch 'multi-device' of github.com:loki-project/loki-messenger-android into multi-device 2019-10-08 10:39:05 +11:00
Niels Andriesse
95695ff88e Clean up seed step 2019-10-08 10:38:22 +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
c8a90ced19 Add missing event 2019-10-07 16:22:13 +11:00
Niels Andriesse
742d9bfa46 Partially implement feedback 2019-10-07 16:15:06 +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
dbd8133926 Merge branch 'dev' into multi-device-integration
# Conflicts:
#	src/org/thoughtcrime/securesms/loki/SeedActivity.kt
2019-10-07 12:21:04 +11:00