Commit graph

3111 commits

Author SHA1 Message Date
nielsandriesse
7b221ca86e Ignore empty display names 2020-05-01 10:26:29 +10:00
Mikunj
d6ff50fac4 Added getFriendRequestUIState and tests. 2020-05-01 10:05:02 +10:00
nielsandriesse
d742d0aeaa Take into account multi device when counting duplicates 2020-05-01 10:00:10 +10:00
nielsandriesse
bcecf70b3b Fix slave device friend request status maintenance 2020-05-01 09:59:58 +10:00
nielsandriesse
948d2d5066 Reduce device link fetching timeout 2020-05-01 09:22:10 +10:00
nielsandriesse
d39220575c Decrease open group deleted messages polling frequency 2020-04-30 16:25:16 +10:00
nielsandriesse
392e63bccc Capture AFR send failures 2020-04-30 16:24:56 +10:00
Mikunj
9a08bb8d3b Added declineFriendRequest tests. 2020-04-30 15:55:53 +10:00
nielsandriesse
5f5dfc45ed Don't spam the console 2020-04-30 15:16:15 +10:00
nielsandriesse
8535a6b530 Improve message fetching performance 2020-04-30 14:16:22 +10:00
nielsandriesse
4fe4ca3d76 Don't show message status bar in note to self 2020-04-30 13:56:31 +10:00
nielsandriesse
57454a8778 Merge branch 'dev' of github.com:loki-project/loki-messenger-ios into dev 2020-04-30 13:29:29 +10:00
nielsandriesse
5dea84e9b0 Don't send auto-generated friend requests for Signal background messages 2020-04-30 13:29:12 +10:00
Mikunj
d63a11b702 Rename function. 2020-04-30 13:24:26 +10:00
nielsandriesse
ab91614558 Add TODO 2020-04-30 13:11:41 +10:00
Mikunj
7caed4f0e5 Added more tests. 2020-04-30 13:04:55 +10:00
nielsandriesse
4098b9638c Untangle receipts, transcripts & typing indicators logic 2020-04-30 12:23:07 +10:00
Mikunj
8a6b2a2bc2 Move around logic to make functions have less side effects 2020-04-30 11:54:32 +10:00
Mikunj
97e7c76d4a Added Tests. 2020-04-30 10:59:12 +10:00
nielsandriesse
a2de00feb8 Avoid nested write transaction 2020-04-30 09:06:05 +10:00
nielsandriesse
dd86966111 Clean up docs & fix crash 2020-04-30 08:51:19 +10:00
nielsandriesse
a7f04cb95c Fix crash 2020-04-29 16:28:14 +10:00
nielsandriesse
fbdab8ccb0 Handle slave device message send failures 2020-04-29 15:59:27 +10:00
Mikunj
4e07810f04 More refactoring. 2020-04-29 15:16:54 +10:00
nielsandriesse
947eecf000 Debug 2020-04-29 14:21:23 +10:00
Mikunj
23188c7e5d Refactor friend request protocol 2020-04-29 13:56:01 +10:00
nielsandriesse
33e47298ae Fix multi device bugs
Various database handling issues, incorrect friend request status handling on auto-generated friend requests and refactor of the multi device message sending logic
2020-04-29 13:55:17 +10:00
Mikunj
4dcf26b7e7 Added migration. 2020-04-29 13:00:51 +10:00
Mikunj
68a14e95da Add friend request status collection 2020-04-29 10:21:09 +10:00
nielsandriesse
f0e5a1c1ef Re-order files 2020-04-29 09:30:18 +10:00
nielsandriesse
bb6f4d8c2c Clean 2020-04-29 09:11:48 +10:00
nielsandriesse
b0233e4cc0 Minor refactoring 2020-04-29 09:02:45 +10:00
nielsandriesse
d6747ebb14 Resolve TODOs in OWSMessageManager 2020-04-28 16:40:42 +10:00
nielsandriesse
3bcad97629 Fix landing screen clipping bug 2020-04-28 16:15:19 +10:00
nielsandriesse
9ffe36a091 Fix crashes 2020-04-28 16:15:00 +10:00
nielsandriesse
632f66f2ba Make device link authorization more reliable 2020-04-28 14:14:28 +10:00
nielsandriesse
fbeea62b32 Fix crash 2020-04-28 13:49:03 +10:00
nielsandriesse
a14d93fa04 Add contact sync message handling test 2020-04-28 11:40:02 +10:00
nielsandriesse
7a21c02edc Clean 2020-04-28 10:21:23 +10:00
nielsandriesse
b206f2dbc9 Fix bug in AFR scenario 1
See https://github.com/loki-project/session-protocol-docs/wiki/Auto-Generated-Friend-Requests for more info
2020-04-28 10:21:02 +10:00
nielsandriesse
c758ad1b89 Add multi device friend request acceptance test 2020-04-28 09:18:33 +10:00
nielsandriesse
43866596ba Minor refactoring 2020-04-27 17:44:57 +10:00
nielsandriesse
d3125c5039 Fix friend request bugs & improve documentation
We were attaching the user's profile picture URL to friend request messages, and there was a bug in multi device friend request acceptance
2020-04-27 16:56:45 +10:00
nielsandriesse
8b50cca7bd Clean 2020-04-25 14:28:34 +10:00
nielsandriesse
383cfead9c Add Storage utility 2020-04-25 14:06:05 +10:00
nielsandriesse
a65235fd3a Clean & add documentation 2020-04-25 12:27:17 +10:00
nielsandriesse
2e1a157a8e Fix nested write transaction 2020-04-25 10:20:25 +10:00
nielsandriesse
2c5b3ecdc1 Fix typo 2020-04-24 12:58:16 +10:00
nielsandriesse
faa6805dcc Debug 2020-04-24 12:20:52 +10:00
nielsandriesse
7f1be7d428 Debug Swift/Obj-C interop 2020-04-24 12:07:14 +10:00
nielsandriesse
6af71a75d0 Add test files 2020-04-24 11:27:07 +10:00
nielsandriesse
a13b330f94 Separate out Session sync message sending logic 2020-04-24 11:16:55 +10:00
nielsandriesse
1351250c92 Split things according to architecture overview docs 2020-04-24 10:22:55 +10:00
nielsandriesse
e186f9df5d Re-order files 2020-04-24 09:16:06 +10:00
nielsandriesse
19aa2595e8 Clean 2020-04-23 16:53:46 +10:00
nielsandriesse
ceb33e36e4 Separate out remaining bits of Session logic 2020-04-23 16:02:36 +10:00
nielsandriesse
6c834b6a6e Re-order functions 2020-04-23 15:03:27 +10:00
nielsandriesse
78534616ac Separate out Session message receiving logic 2020-04-23 14:46:44 +10:00
nielsandriesse
418432d876 Add missing @objc modifier 2020-04-22 16:36:57 +10:00
nielsandriesse
5b630b3b49 Separate out Session message sending logic 2020-04-22 16:23:58 +10:00
nielsandriesse
d2dccc8b98 Increase message TTL 2020-04-21 13:40:33 +10:00
nielsandriesse
8bf2215a24 Fix APNs token updating 2020-04-21 11:21:45 +10:00
nielsandriesse
72b3aba54d Clean 2020-04-21 10:36:23 +10:00
nielsandriesse
8672577a8b Clean 2020-04-20 16:53:40 +10:00
nielsandriesse
478072139e Ditch RSS feeds for now 2020-04-20 10:47:38 +10:00
nielsandriesse
619c3a7f84 Debug 2020-04-17 14:37:22 +10:00
nielsandriesse
fc9a678181 Fix APNs token updating bug 2020-04-17 14:37:09 +10:00
nielsandriesse
cbc94dad70 Add PN mode sheet & fix unsubscribing 2020-04-16 14:01:25 +10:00
Niels Andriesse
c596d5b2a3
Merge pull request #157 from loki-project/push-notification-ui
Push Notification UI
2020-04-15 15:56:37 +10:00
Niels Andriesse
3b103450b6
Merge pull request #154 from loki-project/closed-group-fixes
Closed group fixes
2020-04-15 14:21:06 +10:00
nielsandriesse
d0b83a59e7 Add comment & clean 2020-04-15 14:20:02 +10:00
nielsandriesse
a971a4f609 Hook Session's PN setup into Signal's PN setup 2020-04-15 13:40:19 +10:00
nielsandriesse
e24daf7b67 Finally fix LokiPushNotificationManager linking issue 2020-04-15 10:06:26 +10:00
nielsandriesse
d52de19dbf Add TODO 2020-04-14 10:27:11 +10:00
nielsandriesse
0b29def940 Minor refactoring 2020-04-14 10:07:53 +10:00
nielsandriesse
838688355b Also drop guard snodes as needed 2020-04-14 09:55:43 +10:00
Mikunj
7243dcb48d Fix iOS input being hidden after being removed then added to a group. 2020-04-14 09:54:58 +10:00
nielsandriesse
6aa360da71 Fix retrying 2020-04-14 09:30:38 +10:00
nielsandriesse
89c0cd36ad Minor refactoring 2020-04-14 08:47:13 +10:00
Mikunj
1e1459d6d2 Ignore messages from users that are not in a group. 2020-04-09 15:50:12 +10:00
Mikunj
8c26e16ef0 Fix incorrect message being shown when user was removed from the group.
Hide input bar correctly when we leave a group.
2020-04-09 11:42:23 +10:00
gmbnt
664717b1d0 Clean 2020-04-08 16:32:07 +10:00
gmbnt
d84e3fea27 Fix linking issue & clean 2020-04-07 16:45:26 +10:00
gmbnt
2e38b382c2 Use a serial queue for core operations 2020-04-07 11:18:55 +10:00
gmbnt
ac0a20c8a7 Improve threading 2020-04-07 10:52:41 +10:00
gmbnt
37865bab96 Minor refactoring 2020-04-07 09:33:29 +10:00
gmbnt
48ef152c49 Glue things together again 2020-04-06 16:49:45 +10:00
gmbnt
03c4e4a65c Merge branch 'dev' into push-notifications 2020-04-06 15:32:02 +10:00
gmbnt
e2bc7fb4d8 Add missing retry 2020-04-06 13:53:19 +10:00
gmbnt
b6f51003c8 Fix build 2020-04-06 13:39:45 +10:00
gmbnt
4566bfb389 Minor refactoring 2020-04-06 13:33:15 +10:00
gmbnt
82a71f2385 Implement onion request error handling 2020-04-06 13:26:26 +10:00
ryanzhao
6aec747709 clean 2020-04-06 12:02:55 +10:00
ryanzhao
c8f5172cdc set ttl for background messages 2020-04-06 12:02:43 +10:00
gmbnt
5812578a73 Swap out LokiSnodeProxy with OnionRequestAPI 2020-04-06 11:51:57 +10:00
gmbnt
4f56307d39 Fix parsing 2020-04-06 11:47:04 +10:00
gmbnt
ede00b1a02 Fix incorrect padding setting 2020-04-06 11:11:24 +10:00
gmbnt
3c2109e698 Minor refactoring 2020-04-03 15:05:57 +11:00
gmbnt
c2b1bc120f Fix typo 2020-04-03 10:40:08 +11:00
gmbnt
8c6251389d Further improve onion request tests 2020-04-03 10:34:05 +11:00
gmbnt
0b44f7d7ac Add testnet seed node 2020-04-03 09:24:47 +11:00
gmbnt
d90c1b612c Fix incorrect deployment target & clean up logging 2020-04-03 09:14:29 +11:00
gmbnt
9b5c419aaa Fix misleading log 2020-04-03 09:14:29 +11:00
gmbnt
f7fc92cc0a Fix build 2020-04-03 09:14:29 +11:00
gmbnt
92aba98cb7 Ensure target snode isn't included in onion request path 2020-04-03 09:14:12 +11:00
gmbnt
547f7943c3 Add more onion request tests 2020-04-02 15:48:42 +11:00
gmbnt
f76980da5a Resolve TODO 2020-04-02 15:16:22 +11:00
gmbnt
2fa1391341 Don't use TSNetworkManager for LokiAPI.getRandomSnode() 2020-04-02 15:09:11 +11:00
gmbnt
651aa7039d Move HTTP utilities into their own file 2020-04-02 14:54:52 +11:00
gmbnt
625a3b151b Don't use snodes known to be unreliable for path building 2020-04-02 14:28:40 +11:00
gmbnt
029df5d329 Guard against invalid path sizes 2020-04-02 12:20:14 +11:00
gmbnt
af1597e8b7 Don't test path snodes
This would reveal the user's IP
2020-04-02 12:19:53 +11:00
gmbnt
d54c9c6175 Fix onion request layout 2020-04-02 12:19:10 +11:00
ryanzhao
e28dcfdd0c sync lash hash with expiration to the backend server 2020-04-02 11:57:25 +11:00
gmbnt
9c9049774e Add more documentation 2020-04-02 09:53:03 +11:00
gmbnt
fcb629cf06 Debug onion request path building 2020-04-01 15:31:04 +11:00
gmbnt
1f3d13ee3b Test path snodes for reliability as well 2020-04-01 15:15:09 +11:00
gmbnt
c67e2af9a6 Fix incorrect GCM tag size 2020-04-01 14:40:15 +11:00
gmbnt
245033dbc4 Implement onion request decryption 2020-04-01 13:32:46 +11:00
gmbnt
4e00d30d05 Fix onion request encryption 2020-04-01 13:10:34 +11:00
gmbnt
358b943d7e Debug 2020-04-01 12:56:02 +11:00
gmbnt
b323637f7a Fix missing IV & improve error handling 2020-04-01 11:33:38 +11:00
gmbnt
41701ecde3 Partially revert error handling changes 2020-04-01 09:53:36 +11:00
gmbnt
ce183ee9fa Ditch TSNetworkManager, check guard snode version & fix promise usage 2020-04-01 09:44:09 +11:00
gmbnt
81c36fe5dd Fix threading 2020-03-31 16:49:07 +11:00
gmbnt
3467e1bc94 Fix onion request layout 2020-03-31 16:46:23 +11:00
gmbnt
1106ca5eb1 Make logging more useful 2020-03-31 16:34:31 +11:00
gmbnt
ec660e6017 Debug 2020-03-31 16:16:26 +11:00
gmbnt
7a4a5ff291 Fix onion request layout 2020-03-31 15:36:45 +11:00
gmbnt
1b24637f37 Implement onion request encryption 2020-03-31 15:36:45 +11:00
gmbnt
fd037c2a88 WIP 2020-03-31 15:36:45 +11:00
gmbnt
6b65a05d23 Add TODOs 2020-03-31 15:36:45 +11:00
gmbnt
61bc699f73 Implement onion request layering 2020-03-31 15:36:37 +11:00
ryanzhao
ec1a468aab move LKPushNotificationManager to SignalServiceKit & add lash hash sync with PN server 2020-03-30 17:07:25 +11:00
gmbnt
1b31432de9 Stub onion request path building test 2020-03-30 13:33:19 +11:00
gmbnt
b8a1a3c63e Make testing compile again & add onion request API tests stub 2020-03-30 12:20:59 +11:00
gmbnt
3c7eb22f95 Clean 2020-03-30 11:50:28 +11:00
gmbnt
e01a787ebc Fix threading 2020-03-30 11:47:38 +11:00
gmbnt
f5cf34cce1 Clean 2020-03-30 11:38:06 +11:00
gmbnt
a14314ef87 Implement prototype onion request API 2020-03-30 11:35:45 +11:00
ryanzhao
471870d8a5 Merge branch 'dev' of https://github.com/loki-project/session-ios into PN-with-preview 2020-03-30 11:09:55 +11:00
ryanzhao
c8108575a7 skip saving the session record if it is not in the main app 2020-03-30 11:07:00 +11:00
gmbnt
c882381c9e Adjust message TTLs 2020-03-27 15:11:41 +11:00
gmbnt
25903554e9 Refactor LokiPushNotificationManager 2020-03-27 15:08:26 +11:00
gmbnt
9f2df6d560 Merge branch 'dev' into push-notifications 2020-03-27 11:56:37 +11:00
gmbnt
452469d998 Fix access modifier 2020-03-27 11:52:42 +11:00
gmbnt
96cb307e1a Fix log 2020-03-27 10:36:18 +11:00
ryanzhao
bf84df2b6d Merge branch 'dev' of https://github.com/loki-project/session-ios into PN-with-preview 2020-03-26 11:41:38 +11:00
gmbnt
90933c7856 Debug 2020-03-26 11:22:04 +11:00
ryanzhao
48113969c1 Merge branch 'PN-without-preview' of https://github.com/RyanRory/loki-messenger-ios into PN-with-preview 2020-03-26 11:20:30 +11:00
ryanzhao
67d4f42244 Merge branch 'dev' of https://github.com/loki-project/session-ios into PN-with-preview 2020-03-26 11:05:54 +11:00
gmbnt
f115c06e97 Add comment 2020-03-25 15:54:31 +11:00
gmbnt
dd94074930 Don't limit random snode pool size 2020-03-25 15:52:51 +11:00
gmbnt
99c473ee34 Use only updated snodes for file server proxying 2020-03-25 15:52:25 +11:00
ryanzhao
0e604c1291 Merge branch 'dev' of https://github.com/loki-project/session-ios into PN-with-preview 2020-03-25 13:15:54 +11:00
ryanzhao
a926813b91 Merge branch 'dev' of https://github.com/loki-project/session-ios into PN-without-preview 2020-03-25 11:50:56 +11:00
ryanzhao
dae9fd3c1f push pubkey and token to server and store notification setting locally 2020-03-25 11:50:46 +11:00
ryanzhao
2e0ca402b3 modify ttl for typing messages 2020-03-25 11:50:09 +11:00
gmbnt
5ad32af0d3 Ditch long polling 2020-03-25 10:27:43 +11:00
ryanzhao
ca20f3f979 add a Notification Service Extension for PN with preview 2020-03-24 11:28:53 +11:00
gmbnt
10fb36f4be Notify user of unexpected device link requests 2020-03-23 17:09:59 +11:00
Niels Andriesse
af7ac45b82 Fix various multi device issues 2020-03-11 14:35:55 +11:00
Niels Andriesse
89caa3b8f7 Fix broken check 2020-03-11 10:11:17 +11:00
Niels Andriesse
a3e40ffe2b Fix crash on Josh's phone 2020-03-11 10:05:07 +11:00
Niels Andriesse
3c5a9e7bdc Revert "Attempt to fix background crash in a different way"
This reverts commit d039ecd87e.
2020-03-10 16:14:57 +11:00
Niels Andriesse
0697c95426 Fix group conversation layout 2020-03-10 15:02:52 +11:00
Niels Andriesse
94b85e8309 Add comment 2020-03-10 14:08:53 +11:00
Niels Andriesse
c1586ccc42 Improve message status updating 2020-03-10 14:06:58 +11:00
Niels Andriesse
d039ecd87e Attempt to fix background crash in a different way 2020-03-10 13:43:28 +11:00
Niels Andriesse
ee38b3f1ae Merge branch 'dev' of github.com:loki-project/session-ios into dev 2020-03-10 10:22:11 +11:00
Niels Andriesse
40068dc8b6 Hopefully fix background crash 2020-03-10 10:18:37 +11:00
Niels Andriesse
74d60b36b9 Fix typo 2020-03-06 15:56:05 +11:00
Ryan ZHAO
9d2cdef750 fix up unlinking 2020-03-04 15:12:22 +11:00
Ryan ZHAO
3490f9a2b3 hide the threads with background friend requests after receiving sync contacts messages on slave device 2020-03-04 14:33:01 +11:00
Ryan ZHAO
9a711a8a61 Merge branch 'dev' of https://github.com/loki-project/loki-messenger-ios into fix-syncing-for-multidevice 2020-03-04 09:26:11 +11:00
Niels Andriesse
89d039ffb0 Clean 2020-03-03 16:28:05 +11:00
gmbnt
bd401549c4
Merge pull request #127 from RyanRory/fix-key-invalid
Ensure generated PreKeyBundle is valid
2020-03-03 12:26:46 +07:00
Niels Andriesse
4ed1197547 Add comment 2020-03-03 16:26:32 +11:00
gmbnt
3c3eb0d189
Merge pull request #126 from RyanRory/fix-unlink-device
fix unlink device
2020-03-03 12:25:33 +07:00
Ryan ZHAO
c89e1f8fa7 minor fix for syncing groups 2020-03-03 14:31:09 +11:00
Ryan ZHAO
9f02752164 make sure the PrekeyBundle is valid before send it out 2020-02-28 15:23:02 +11:00
Niels Andriesse
1a77ba51cf Move file 2020-02-28 10:18:55 +07:00
Ryan ZHAO
b990420c6f Merge branch 'dev' of https://github.com/loki-project/loki-messenger-ios into sync-open-group 2020-02-28 14:05:36 +11:00
Ryan ZHAO
a8f61fdb14 WIP fix key invalid 2020-02-28 14:02:26 +11:00
Niels Andriesse
3479fc4333 Reduce code duplication 2020-02-28 09:58:45 +07:00
gmbnt
eebff42412
Merge pull request #104 from RyanRory/sync-closed-group
Closed group functionality and synchronisation
2020-02-28 09:33:30 +07:00
Ryan ZHAO
3f0e616173 fix unlink device 2020-02-26 16:58:37 +11:00
Niels Andriesse
1c44a65f2c Fix database handling issues 2020-02-26 09:58:36 +07:00
Niels Andriesse
c0dda78e52 Debug 2020-02-25 16:32:05 +07:00
Ryan ZHAO
d53c74ff5b minor fix 2020-02-25 16:19:56 +11:00
Ryan ZHAO
af913305b0 fix typo 2020-02-25 15:47:43 +11:00
Ryan ZHAO
b013c417c3 enable sending sync open group messages 2020-02-25 15:42:38 +11:00
Ryan ZHAO
9afd838ea5 fix the sync message bug after refactoring 2020-02-25 10:34:59 +11:00
Ryan ZHAO
63aafe06a1 Merge branch 'dev' of https://github.com/loki-project/loki-messenger-ios into sync-closed-group 2020-02-21 15:11:20 +11:00
Ryan ZHAO
5c3c00243c send sync messages with 2 contacts and 1 group each time 2020-02-21 15:11:07 +11:00
Niels Andriesse
60569bf4c3 Clean 2020-02-21 10:24:03 +07:00
gmbnt
53528184c3
Merge pull request #118 from RyanRory/pn-fix-attachment-issue
Fix background tasks crashing when PN received
2020-02-21 14:15:06 +11:00
Niels Andriesse
a74dbf9a16 Clean 2020-02-21 10:07:28 +07:00
Niels Andriesse
1b3a1b55cc Merge branch 'dev' into security 2020-02-21 09:56:35 +07:00
Ryan ZHAO
db2e6f8eec clean 2020-02-21 11:08:16 +11:00
Niels Andriesse
bf54d78b99 Untie profile picture from auth token 2020-02-20 16:59:05 +11:00
Ryan ZHAO
abb3f2f9b5 Merge branch 'dev' of https://github.com/loki-project/loki-messenger-ios into pn-fix-attachment-issue 2020-02-20 16:14:23 +11:00
Ryan ZHAO
d6f2f6fee2 fix attachment download 2020-02-20 14:41:16 +11:00
Niels Andriesse
26ded1b80a Clean up notification usage 2020-02-20 13:30:30 +11:00
Niels Andriesse
d99efa1c57 Fix unsafe user defaults usage 2020-02-19 16:45:38 +11:00
Niels Andriesse
74a75d5b8a Fix proxying bug 2020-02-19 14:10:09 +11:00
Niels Andriesse
8719ea676d Enforce threading convention
All encryption and decryption on the global queue; don't bother for trivial operations
2020-02-19 13:55:58 +11:00
Niels Andriesse
d7256ed0b3 Reduce device link fetching timeout 2020-02-19 11:11:22 +11:00
Niels Andriesse
2461432917 Fix freeze on joining an open group 2020-02-19 11:11:07 +11:00
Niels Andriesse
1d865b4af7 Cherry pick part of #110 2020-02-19 10:00:49 +11:00
Niels Andriesse
f4b614bc81 Increase random snode pool size 2020-02-18 16:11:10 +11:00
Ryan ZHAO
87b7bfa0c0 remove updating for admins after a slave device received a group sync message 2020-02-18 14:02:51 +11:00
Ryan ZHAO
b206f2944e Merge branch 'dev' of https://github.com/loki-project/loki-messenger-ios into sync-closed-group 2020-02-17 17:08:55 +11:00
Niels Andriesse
59b3491127 Quick fix crash 2020-02-17 16:46:13 +11:00
Niels Andriesse
814d599dcc Fix duplicate request bug 2020-02-17 15:14:00 +11:00
Ryan ZHAO
807c862078 Merge branch 'dev' of https://github.com/loki-project/loki-messenger-ios into sync-closed-group 2020-02-17 14:51:28 +11:00
Niels Andriesse
595905ebd0 Forward declare LKSessionResetStatus & clean 2020-02-17 14:48:49 +11:00
Ryan ZHAO
be20236a78 Merge branch 'dev' of https://github.com/loki-project/loki-messenger-ios into sync-closed-group 2020-02-17 14:22:23 +11:00
Niels Andriesse
64dc3607d3 Clean 2020-02-17 14:18:01 +11:00
Niels Andriesse
a5b37a631d Merge branch 'dev' into session-reset-fix 2020-02-17 13:56:20 +11:00
Ryan ZHAO
f9abed931b Merge branch 'dev' of https://github.com/loki-project/loki-messenger-ios into sync-closed-group 2020-02-17 13:35:40 +11:00
Ryan ZHAO
7d66fa151c fix admin check method 2020-02-17 13:33:09 +11:00
Mikunj
080b24b282 Handle session adoption correctly 2020-02-17 12:44:31 +11:00
Mikunj
5bb9d135b1 Implement new cipher changes 2020-02-17 12:43:43 +11:00
Mikunj
ff54cc4030 Removed duplicate DiffieHellman and FallbackSessionCipher files 2020-02-17 12:42:47 +11:00
Niels Andriesse
2dde805938 Remove unnecessary assertion 2020-02-17 12:09:47 +11:00
Ryan ZHAO
6c823ea16e Merge branch 'dev' of https://github.com/loki-project/loki-messenger-ios into sync-closed-group 2020-02-17 11:28:29 +11:00
Ryan ZHAO
7bafd94643 check if the linked device is a member of the closed group 2020-02-17 10:59:25 +11:00
Niels Andriesse
6def911dbc Enforce file size limit for profile pictures 2020-02-17 10:46:43 +11:00
Niels Andriesse
758f37b886 Proxy profile picture uploads 2020-02-17 10:29:43 +11:00
Ryan ZHAO
a3cd1995cd update the handler of receiving a sync request for groups 2020-02-17 10:12:40 +11:00
Ryan ZHAO
41a6308973 hide input tool bar on linked device after leaving a closed group 2020-02-17 10:04:17 +11:00
Ryan ZHAO
68bc25a00c Merge branch 'dev' of https://github.com/loki-project/loki-messenger-ios into sync-closed-group 2020-02-17 09:20:25 +11:00
Ryan ZHAO
d5c4939a45 enable leaving a closed group with linked device synced 2020-02-17 09:19:25 +11:00
Niels Andriesse
0c18e82524 Clean up logging & documentation 2020-02-16 08:49:33 +11:00
Niels Andriesse
85083d1969 Clean 2020-02-15 10:01:21 +11:00
Niels Andriesse
bbb999dc83 Fix sealed sender related multi device issues 2020-02-15 08:15:57 +11:00
Ryan ZHAO
171c2341b8 join the group after receiving a group sync message 2020-02-14 14:54:06 +11:00
Ryan ZHAO
6724733387 Merge branch 'dev' of https://github.com/loki-project/loki-messenger-ios into sync-closed-group 2020-02-14 13:47:09 +11:00
Ryan ZHAO
62cc2a399f totally fix the contact sync message issue 2020-02-14 13:46:45 +11:00
Niels Andriesse
8b201f594e Fix occasional hang on startup 2020-02-14 13:21:26 +11:00
Ryan ZHAO
f8489f2459 Merge branch 'dev' of https://github.com/loki-project/loki-messenger-ios into sync-closed-group 2020-02-14 11:37:33 +11:00
Ryan ZHAO
ecf02bbb3e fix sending contact sync messages 2020-02-14 11:37:14 +11:00
Niels Andriesse
c8a265258a Disable Loki News Feed & add missing message action 2020-02-14 11:03:25 +11:00
Niels Andriesse
a586c9db2d Handle clock out of sync issue
Also generally improve error handling
2020-02-14 10:16:53 +11:00
Ryan ZHAO
12c7fd4313 Merge branch 'dev' of https://github.com/loki-project/loki-messenger-ios into sync-closed-group 2020-02-14 09:31:10 +11:00
Ryan ZHAO
d5d88c5589 fix the bug when sending the friend request for a contact sync message 2020-02-14 09:30:34 +11:00
Niels Andriesse
f3a77222ab Clean 2020-02-13 16:51:07 +11:00
Niels Andriesse
067a31bb79 Reduce device link update interval 2020-02-13 16:40:20 +11:00
Ryan ZHAO
cfe435bcd1 fix group parser 2020-02-13 13:54:20 +11:00
Ryan ZHAO
9e1681558e handle sync message of closed groups 2020-02-12 17:14:52 +11:00
Ryan ZHAO
b5ce94c6ab add group parser 2020-02-12 17:08:27 +11:00
Ryan ZHAO
1a156c604a enable to send the group sync message 2020-02-12 16:31:37 +11:00
Niels Andriesse
e1b5d5443d Make text messaging independent from the file server 2020-02-10 16:37:53 +11:00
Niels Andriesse
248fb6eeaf Show activity indicator for proxied file uploads 2020-02-10 16:27:10 +11:00
Niels Andriesse
18670545f9 Implement file size limit 2020-02-10 15:47:15 +11:00
Niels Andriesse
cc40862740 Rename LokiStorageAPI → LokiFileServerAPI 2020-02-10 14:40:53 +11:00
Niels Andriesse
d502aeaa80 Use a dummy auth token instead of no token at all 2020-02-10 14:38:33 +11:00
Niels Andriesse
dfd4340c79 Use file-dev in debug mode 2020-02-10 14:36:52 +11:00
Niels Andriesse
3d29480c29 Don't include an auth token with encrypted file uploads
Also refactor a bit
2020-02-10 12:01:23 +11:00
Ryan ZHAO
24f31081d1 support sealed sender (envelopes with no source) for push notification 2020-02-06 16:58:32 +11:00
Niels Andriesse
15cc478654 Add report button for Session Public Chat messages 2020-02-06 14:13:07 +11:00
Niels Andriesse
9434a8364a Add Session public chat notice 2020-02-06 11:03:13 +11:00
Niels Andriesse
476edc14f1 Remove CallKit 2020-02-06 10:34:13 +11:00
Niels Andriesse
b6003cbf8e Update file server URL 2020-02-05 10:16:29 +11:00
Niels Andriesse
76d9c1ad2d Merge branch 'bug-fix-quit-group' of github.com:RyanRory/loki-messenger-ios into dev 2020-02-05 09:27:54 +11:00
Niels Andriesse
323caac764 Fix copy 2020-02-04 17:19:44 +11:00
Ryan ZHAO
e854300ee6 fix the bug when a group member quit the group and other members will see no members in the group 2020-02-04 17:04:00 +11:00
Niels Andriesse
b5dcf4b78e Fix threading 2020-02-04 15:48:17 +11:00
Mikunj
efc2988576 Map any incoming group messages from slave devices to master devices.
Closed groups should only have master devices in them.
2020-02-04 14:24:39 +11:00
Mikunj
ecc40368cb Fix bug where slave devices were being shown in private group chats 2020-02-04 14:16:21 +11:00
Niels Andriesse
99046145a3 Rename Loki Messenger Updates → Session Updates 2020-02-04 13:03:09 +11:00
Niels Andriesse
c75360f5e3 Fix file server proxying 2020-02-04 12:30:05 +11:00
Niels Andriesse
fa43f2f834 WIP 2020-02-04 11:34:39 +11:00
Niels Andriesse
25817b8688 Fix merge 2020-02-04 10:53:49 +11:00
Niels Andriesse
4d57676c70 Merge branch 'sealed-sender' of github.com:RyanRory/loki-messenger-ios into dev 2020-02-04 10:48:04 +11:00
Niels Andriesse
37377c32df Clean 2020-02-03 20:55:42 +11:00
Niels Andriesse
ab2b7528b4 WIP 2020-02-03 20:27:13 +11:00
Niels Andriesse
55344700d7 WIP 2020-02-03 16:50:14 +11:00
Ryan ZHAO
d497d6a1db enable session restore and sync messages with sealed sender 2020-02-03 15:46:58 +11:00
gmbnt
2c15cd06f5
Merge pull request #81 from loki-project/proxying
File Server & RSS Feed Proxying
2020-02-03 14:52:36 +11:00
Niels Andriesse
efeefc4d0e Fix RSS feed parsing 2020-02-03 14:52:15 +11:00
Niels Andriesse
2dc1a44087 Clean 2020-02-03 14:33:47 +11:00
Ryan ZHAO
0ff7b780cc debug: when we clear all data, the sender certificate is not deleted, so just generate a new one each time we send a UD message 2020-02-03 14:19:21 +11:00
Niels Andriesse
e95f91558b Integrate RSS feed proxy 2020-02-03 14:15:35 +11:00
Niels Andriesse
c1c04b7ef2 Remove Signal request 2020-02-03 12:59:20 +11:00
Niels Andriesse
740f84c466 Debug file server proxying 2020-02-03 12:59:04 +11:00
Ryan ZHAO
774478a6e2 enable device link message with sealed sender 2020-02-03 11:14:22 +11:00
Ryan ZHAO
fe158de362 hide the source on the envelope 2020-02-03 09:44:11 +11:00
Niels Andriesse
bc830c19da Fix member count bug 2020-02-02 19:08:46 +11:00
Niels Andriesse
5eca023422 Implement RSS feed proxying 2020-02-02 11:47:38 +11:00
Niels Andriesse
51fb4ed21d Implement file server proxying 2020-02-02 11:33:34 +11:00
Niels Andriesse
cbda28a9a0 Remove analytics & Signal requests 2020-02-01 11:49:34 +11:00
Niels Andriesse
2a8a775b60 Disable link previews by default 2020-02-01 08:24:42 +11:00
Ryan ZHAO
def2221de8 enable sealed sender 2020-01-31 17:01:29 +11:00
Niels Andriesse
f3c36391b9 Remove Mixpanel 2020-01-31 16:02:30 +11:00
Niels Andriesse
ccd2d30f61 Refactor 2020-01-31 09:42:36 +11:00
Niels Andriesse
5b43cbc25a Remove outdated comments 2020-01-30 20:16:31 +11:00
Niels Andriesse
a41b670bb5 Refactor 2020-01-30 20:09:02 +11:00
Niels Andriesse
64fd89291e Fix multi device x closed groups 2020-01-30 15:51:46 +11:00
Niels Andriesse
b8f71c5c28 Fix multi device 2020-01-30 14:20:51 +11:00
Niels Andriesse
5de7c452cf Fix session handling bug 2020-01-30 11:12:11 +11:00
Niels Andriesse
f656a1d4d8 Clean 2020-01-30 09:15:42 +11:00
Niels Andriesse
78ab0d483b Remove debug code 2020-01-29 14:58:28 +11:00
Niels Andriesse
e8c44937e3 Fix copy 2020-01-29 14:38:52 +11:00
Niels Andriesse
9d833e901a WIP 2020-01-29 13:32:08 +11:00
Ryan ZHAO
3f43a05df6 enable send UD message 2020-01-29 10:31:57 +11:00
Niels Andriesse
f1a82fde2a Fix crash 2020-01-29 10:31:43 +11:00
Niels Andriesse
71fe68278d WIP 2020-01-29 10:18:45 +11:00
Niels Andriesse
7762418ac1 Clean 2020-01-28 15:08:42 +11:00
Niels Andriesse
0f0eba9325 Merge branch 'dev' into group-chats 2020-01-28 14:22:26 +11:00
Niels Andriesse
d3904589e3 Clean 2020-01-28 10:24:03 +11:00
Niels Andriesse
ec457a4a26 Clean 2020-01-24 15:55:07 +11:00
Niels Andriesse
f0e5f0246d Merge branch 'dev' into proxy 2020-01-24 13:59:51 +11:00
Niels Andriesse
8c18439893 Clean 2020-01-24 13:59:47 +11:00
Niels Andriesse
09b603aba8 Fix comment 2020-01-24 13:19:54 +11:00
gmbnt
2945356222
Merge pull request #74 from RyanRory/message-ordering
Message ordering by sender's timestamp
2020-01-24 13:18:30 +11:00
Niels Andriesse
477fbe494d Fix build 2020-01-24 11:03:45 +11:00
Niels Andriesse
a591adb8f7 Merge branch 'dev' into session-restore 2020-01-24 10:58:41 +11:00
Niels Andriesse
3769f50a21 Fix public chat deletion 2020-01-24 09:48:47 +11:00
Mikunj
8f7ba1407f Clean.
Switched to generating ephemeral key-pair per proxy request.
2020-01-23 10:04:36 +11:00
Mikunj
54c2e793ed Added LokiSnodeProxy 2020-01-23 09:35:43 +11:00
Mikunj
920520077d Added public key to LokiAPITarget 2020-01-23 09:25:11 +11:00
Niels Andriesse
213d154472 Fix group chat notifications 2020-01-22 15:32:23 +11:00
Ryan ZHAO
8838dfb430 add admins to group, clean up some code 2020-01-22 14:41:34 +11:00
Ryan ZHAO
efb6295962 update version migrations for new group id for public chats and rss feeds 2020-01-22 10:23:35 +11:00
Niels Andriesse
7cfd43ff6b Implement group member count, fix QR code scanning & clean 2020-01-22 09:53:29 +11:00
Ryan ZHAO
41d682a802 update group id to sync with android 2020-01-21 17:49:09 +11:00
Ryan ZHAO
fc01b91234 fix the issue of becoming friends automatically 2020-01-20 16:58:38 +11:00
Niels Andriesse
f4ebee2606 Fix release mode linking 2020-01-20 16:00:01 +11:00
Niels Andriesse
7020f2a73e Hopefully fix threading issue 2020-01-20 15:04:22 +11:00
Niels Andriesse
de2d0ea15e Don't auto-join public chats 2020-01-20 14:45:37 +11:00
Ryan ZHAO
3752879166 update sesstion request building with the same protocol with desktop and android 2020-01-20 11:32:07 +11:00
Ryan ZHAO
7987b7b4b9 fix crash of nil exception in group chats 2020-01-17 14:13:02 +11:00
Ryan ZHAO
3dc7494b16 Handle session request message for group members 2020-01-17 10:38:16 +11:00
Ryan ZHAO
369b5ddaf2 enable to create a new private chat group 2020-01-15 15:44:31 +11:00
Ryan ZHAO
0df5f857a7 let users know when members are removed 2020-01-14 14:58:22 +11:00
Ryan ZHAO
997b894125 Merge branch 'dev' of https://github.com/loki-project/loki-messenger-ios into private-group-chat 2020-01-14 10:27:06 +11:00
Ryan ZHAO
dc0d6fa1c3 try to add admin 2020-01-14 10:24:12 +11:00
Ryan ZHAO
0c94915a98 change to new ssl hostname for registering toke to our server 2020-01-13 14:03:49 +11:00
Ryan ZHAO
b29096ad21 try to make settings for group chat working 2020-01-13 11:14:49 +11:00
Ryan ZHAO
d9a7dc07ef Distinguish public chat and rss feed from regular groups 2020-01-10 10:52:47 +11:00
Ryan ZHAO
8d770833ad Sort the messages by sender's timestamp 2020-01-08 11:23:19 +11:00
Niels Andriesse
86a9e6534e Clean 2020-01-06 13:16:43 +11:00
Niels Andriesse
d90abd3fe8 Implement conversation settings screen redesign 2019-12-13 11:23:45 +11:00
Niels Andriesse
c0c68f58d9 Implement seed screen
Also fix profile picture updating
2019-12-12 13:17:14 +11:00
Niels Andriesse
d05df87dd2 Implement the much anticipated Simon status bar 2019-12-11 16:08:08 +11:00
Mikunj
57db0bd211 Clean 2019-12-10 15:59:20 +11:00
Mikunj
770d8b2f3d Added session restore message sending 2019-12-10 15:43:18 +11:00
Mikunj
58a260aac5 Show session restore banner 2019-12-10 11:29:32 +11:00