Commit graph

540 commits

Author SHA1 Message Date
Mikunj
4c21cecc66 Migrate from Dictionary to LokiGroupChat. 2019-08-27 12:26:02 +10:00
Mikunj
3930891a3d Added dictionary for adding more servers.
Updated group chat poller to take an array of groups.
2019-08-27 11:26:12 +10:00
Niels Andriesse
bb2c26e92e Update LokiGroupChatPoller for message deletion 2019-08-27 11:05:58 +10:00
Niels Andriesse
7d3d0b31d9 Add LokiGroupChatAPI.getDeletedMessageIDs(...) & private server support 2019-08-27 11:05:42 +10:00
Niels Andriesse
d95df736d5 Merge branch 'dev' into group-chat 2019-08-23 15:44:46 +10:00
Mikunj
d7ada75660 Fix date not being parsed properly.
Fix message indicators on groups.
Fix receipts being sent in groups.
2019-08-23 10:27:22 +10:00
Niels Andriesse
9b613eba90 Disable notifications for group chats 2019-08-22 10:45:47 +10:00
Niels Andriesse
48706d233f Implement group message sending & receiving 2019-08-21 16:16:40 +10:00
Niels Andriesse
234a2827b3 Fix release issues 2019-06-25 16:17:05 +10:00
Niels Andriesse
71d48e4be4 Handle background fetch errors 2019-06-17 14:53:20 +10:00
Niels Andriesse
a00f7f921c Disable P2P server for now 2019-06-14 11:40:54 +10:00
Niels Andriesse
39c497f13d Clean up logging 2019-06-13 14:34:19 +10:00
Niels Andriesse
820b0829bb Merge LokiP2PManager & LokiP2PMessageHandler 2019-06-12 14:50:36 +10:00
Niels Andriesse
df7ca74b70 Simplify LokiAPI changes 2019-06-12 14:23:01 +10:00
Mikunj
9676af0d6b Fix logging message. 2019-06-12 13:06:23 +10:00
Mikunj
763ecefca0 Removed un-needed try statement. 2019-06-12 12:14:04 +10:00
Mikunj
04bdaff3c6 Added long polling. 2019-06-12 11:12:39 +10:00
Niels Andriesse
5351961af7 Clean 2019-05-27 12:26:37 +10:00
Mikunj
482721a2c2 Merge branch 'dev' into p2p 2019-05-27 10:24:35 +10:00
Mikunj
88afca30c6 Moved P2P logic to LokiP2PManager. 2019-05-27 09:50:37 +10:00
Niels Andriesse
33a5e59415 Clean 2019-05-24 12:15:31 +10:00
Niels Andriesse
1fafa550f0 Fix message sending error handling 2019-05-24 11:24:27 +10:00
Mikunj
ed85a0da3c Merge commit 'fe9a32d1b99253de2e4b0b38653333317aa7e35a' into p2p 2019-05-23 16:16:17 +10:00
Mikunj
0566d94105 Merge commit '07fefc168fcadb5e96aa3a076a27b6756cf91b6c' into p2p 2019-05-23 15:31:27 +10:00
Niels Andriesse
fe9a32d1b9 Simplify swarm caching 2019-05-23 15:26:52 +10:00
Niels Andriesse
5af0ad03b9 Persist swarm cache & make access modifiers explicit 2019-05-23 12:28:35 +10:00
Mikunj
2694699e4e Added LKAddressMessage.
Hooked up p2p api.
2019-05-23 12:17:40 +10:00
Niels Andriesse
24dd8335de
Merge pull request #18 from loki-project/p2p
P2p server
2019-05-22 14:32:09 +10:00
Niels Andriesse
20472c8bed Fix minor code style issues 2019-05-22 14:29:59 +10:00
Niels Andriesse
08aac18384 Clean more 2019-05-22 13:09:01 +10:00
Mikunj
2ae665f682 Bind to a random port if the default one is taken. 2019-05-22 11:52:32 +10:00
Mikunj
748b7eff12 Start p2p server on app start.
Handle more cases in the p2p server.
2019-05-22 10:34:08 +10:00
Niels Andriesse
1c73cf5114 Re-order files 2019-05-21 11:40:29 +10:00
Niels Andriesse
4a633fba68 Debug friend request expiration 2019-05-20 14:52:26 +10:00
Mikunj
f1cbc2e0d1 Added friend request message expiration. 2019-05-20 11:18:24 +10:00
Niels Andriesse
5800222606 Remove unnecessary fetches 2019-05-14 16:37:25 +10:00
Niels Andriesse
d95d0671d6 Remove unnecessary local notification generation 2019-05-10 16:47:24 +10:00
Niels Andriesse
4da8d33932 Clean 2019-05-10 13:38:00 +10:00
Niels Andriesse
992813ad24 Use UIApplicationBackgroundFetchIntervalMinimum 2019-05-10 12:04:39 +10:00
Niels Andriesse
4aef593d7c Also poll for messages when the app is in the foreground 2019-05-10 12:02:04 +10:00
Niels Andriesse
2b490b5ad5 Use MessageFetcherJob for message receiving & fix decoding bug 2019-05-10 11:17:09 +10:00
Niels Andriesse
aeea6f26de Re-enable notifications 2019-05-08 15:51:08 +10:00
Niels Andriesse
2092df955a Generate mock notification upon successful message retrieval 2019-05-08 15:19:01 +10:00
Niels Andriesse
a9a9800dd2 Fix duplicate error unwrapping 2019-05-08 14:01:23 +10:00
Mikunj Varsani
a743698386 Hooked up message send success and failure to LokiAPI.
Converted objective c functions from callbacks to promise in LokiAPI
2019-05-08 12:37:38 +10:00
Niels Andriesse
3c7b769d20 Fetch messages & ping friends when application becomes active 2019-05-08 11:42:31 +10:00
Niels Andriesse
cc1f41c11b Implement background fetching skeleton 2019-05-08 11:30:02 +10:00
Niels Andriesse
a284f3deb6 Don't ask for notifications 2019-05-06 10:30:24 +10:00
Niels Andriesse
aeb3cecf55 WIP 2019-05-03 07:58:48 +10:00
Matthew Chen
987726df6c Temp files. 2019-03-27 12:37:22 -04:00
Matthew Chen
85d58d3396 Improve handling of call intents. 2019-03-21 15:22:47 -04:00
Matthew Chen
882dd16d7c Apply presentAlert() throughout codebase. 2019-03-21 10:55:04 -04:00
Michael Kirk
3be41e8c25 Unless you're on a call, all windows respect the orientation mask of the
primary app visible VC.

Fixes:
- Avoid flicker when forgrounding onboarding while in landscape
- Fix status bar in landscape while fingerprint is portrait, same with device linker
2019-02-26 19:52:09 -07:00
Michael Kirk
5361720b19 log token in debug 2019-02-26 10:09:29 -07:00
Michael Kirk
680b844f3c Allow all windows to do landscape, fixes:
1. Remove undesirable animation from portrait->landscape when minimizizing in
   landscape and relaunching in landscape.

2. This also seems to fix the intermittently misplaced toolbar when launching
   in landscape. I believe this is a consequence of fix #1
2019-02-21 17:38:52 -07:00
Matthew Chen
aa8fd9e69c Remove old registration views. 2019-02-20 17:35:46 -05:00
Matthew Chen
29b49d6f43 Enable new onboarding in production. 2019-02-20 10:25:16 -05:00
Michael Kirk
d26c095fe7 Merge remote-tracking branch 'origin/release/2.36.0' 2019-02-19 12:50:00 -07:00
Matthew Chen
9381220d8f Sketch out CAPTCHA onboarding view. 2019-02-14 09:59:07 -05:00
Matthew Chen
57394f0015 Respond to CR. 2019-02-14 09:23:50 -05:00
Michael Kirk
cb3a36ba3d Platform specific notification clearing 2019-02-12 17:01:06 -07:00
Michael Kirk
a6a7616fdb move notification action handlers to environment 2019-02-01 17:44:14 -07:00
Michael Kirk
fe84275cce Respect audio preferences/throttling 2019-02-01 17:44:13 -07:00
Michael Kirk
1bfe691895 In app notifications for iOS10+
Extract shared notification presention/response

Implement adapters which use that logic for modern UNUserNotification and
legacy UINotifications
2019-02-01 17:44:13 -07:00
Michael Kirk
11afc967d2 move NotificationsManager behind NotificationsAdapter 2019-02-01 17:44:13 -07:00
Matthew Chen
12e57ecd25 Improve background screenshots v. orientation. 2019-01-31 10:14:06 -05:00
Matthew Chen
4be302bbea Update link previews setting behavior. 2019-01-29 16:32:30 -05:00
Matthew Chen
39de96ac26 Re-enable landscape orientation; fix 'double activation' issue. 2019-01-28 11:48:49 -05:00
Matthew Chen
e7b9f7da99 Flush multi-process writes more aggressively. 2019-01-24 17:03:49 -05:00
Matthew Chen
9149282e94 Resize link preview images if necessary. 2019-01-24 13:28:54 -05:00
Matthew Chen
9d020e490c Respond to CR. 2019-01-16 15:24:19 -05:00
Michael Kirk
119f309787 Fixup database conversion vis a vis SQLCipher4 2019-01-14 09:48:49 -05:00
Matthew Chen
2ddde368ec Landscape orientation. 2019-01-09 15:22:55 -05:00
Matthew Chen
7654d05417 Landscape orientation. 2019-01-09 15:20:05 -05:00
Matthew Chen
5adcbac5ef Landscape orientation. 2019-01-09 15:14:36 -05:00
Matthew Chen
3a5de59dcb Try to update account attributes every time we upgrade. 2019-01-07 09:02:39 -05:00
Matthew Chen
ca129bf360 Preheat more UI DB views. 2018-12-13 12:28:18 -05:00
Matthew Chen
5f637f24e9 Preheat UI DB views. 2018-12-13 11:48:24 -05:00
Matthew Chen
f7842dd2aa Rework lazy attachment restore. 2018-12-03 22:06:38 -05:00
Michael Kirk
7aad3a9e7a Avoid spurious crash reporting 2018-11-27 10:47:40 -07:00
Matthew Chen
dcaaff7eac Add isRegisteredAndReady to TSAccountManager. 2018-11-27 09:21:44 -05:00
Matthew Chen
70b2280aa7 Add isRegisteredAndReady to TSAccountManager. 2018-11-27 09:21:44 -05:00
Matthew Chen
d44a8f9996 Sketch out the backup restore view. 2018-11-27 09:21:44 -05:00
Matthew Chen
4ee0958384 Sketch out the backup restore view. 2018-11-27 09:21:44 -05:00
Matthew Chen
dae80ad4c6 Reorganize util code. 2018-11-19 15:52:23 -05:00
Matthew Chen
39c820b866 Distinguish 'app will/did become ready' events. 2018-11-05 09:04:57 -05:00
Matthew Chen
eb2e16872e Distinguish 'app will/did become ready' events. 2018-11-05 09:04:57 -05:00
Michael Kirk
19f2d0db48 WIP: Media Landscape Mode 2018-11-01 08:43:59 -06:00
Matthew Chen
40aa78e001 Merge remote-tracking branch 'origin/release/2.31.0' 2018-10-31 11:42:41 -04:00
Matthew Chen
ed4fa2e8cb Respond to CR. 2018-10-26 14:44:53 -04:00
Matthew Chen
38f3321e9a Improve startup logging. 2018-10-26 14:44:53 -04:00
Michael Kirk
54c63c7a2e Reachability Singleton 2018-10-25 11:56:39 -06:00
Michael Kirk
3560f3be5c Durable send operation
TODO
-[x] respect order of queue
-[x] replacements
  -[x] those w/o completion handler
  -[x] basic send+log operation persists
  -[x] send+ui completion
  -[x] share extension
  -[x] update state jobs
-[x] App Lifecyle
  -[x] settable
  -[x] Mark as ready on startup
  -[x] Fail appropriate jobs on startup

NICE TO HAVE
-[x] concurrent per senders
-[ ] longer retry (e.g. 24hrs)
-[ ] App Lifecyle
  -[x] retry failed jobs on startup?
  -[ ] reachability

DONE
-[x] basic passing test
-[x] datamodel
-[x] queue/classes
2018-10-25 11:54:59 -06:00
Matthew Chen
8e1103c28f Log WebRTC version. 2018-10-24 16:58:45 -04:00
Michael Kirk
3b4188f34b hoist audio session singleton to Environment 2018-10-24 07:46:25 -06:00
Matthew Chen
8fec73dda5 Fix edge cases around UD v. linked devices. 2018-10-22 12:33:09 -04:00
Matthew Chen
d656ae1017 Fix edge cases around UD v. linked devices. 2018-10-22 12:31:28 -04:00
Matthew Chen
275414cbda Respond to CR. 2018-10-16 17:42:54 -04:00
Matthew Chen
7c1f1882d8 Sync "show UD indicators" setting. 2018-10-16 17:42:54 -04:00
Matthew Chen
b1e52c30b3 Fix build breakage. 2018-10-16 10:42:51 -04:00