Commit graph

563 commits

Author SHA1 Message Date
Mikunj 3c7369f465 Added storage functions.
Minor refactor.
2019-10-09 11:01:48 +11:00
Niels Andriesse 40bb4ba1a4 Set device link message TTL, clean & add more analytics 2019-10-03 14:45:00 +10:00
Niels Andriesse 7828ad3ebe Partially debug storage API 2019-09-26 14:43:37 +10:00
Niels Andriesse a604ba5646 Start implementing device linking UI 2019-09-20 15:53:24 +10:00
Niels Andriesse da2d18f0fc Start integrating LokiDeviceLinkingSession 2019-09-20 14:26:29 +10:00
Niels Andriesse 98ebbfa83c Only record crashes in release mode 2019-09-18 13:58:07 +10:00
Niels Andriesse 99e8aa5803 Clean 2019-09-12 10:06:42 +10:00
Mikunj f7039809a7 Stop polling upon deleting group chat.
Also don't create poller if thread has been deleted.
2019-09-11 10:40:17 +10:00
Niels Andriesse 1e4b88d616 Set up Crashlytics 2019-09-05 10:40:30 +10:00
Niels Andriesse bf7dd70327 Add basic events 2019-09-04 15:55:17 +10:00
Niels Andriesse b367ea7ab8 Set up Mixpanel 2019-09-04 14:41:38 +10:00
Niels Andriesse 9283012988 Make moderation permission both group and server specific
Also fix dependence on self and app delegate issue
2019-09-02 13:46:22 +10:00
Mikunj af3e74b73b Merge branch 'dev' into server-deletion 2019-09-02 10:43:31 +10:00
Niels Andriesse 378a30e9d6 Re-integrate LokiLongPoller 2019-08-29 15:21:45 +10:00
Mikunj be1def6dfc Merge branch 'dev' into server-deletion 2019-08-29 15:14:37 +10:00
Mikunj 679b2f7742 Added mod polling 2019-08-29 15:08:34 +10:00
Mikunj bf09a2014b Hookup api. 2019-08-29 11:34:59 +10:00
Niels Andriesse 605d2d34af Change Loki Messenger Updates feed ID 2019-08-28 13:47:56 +10:00
Niels Andriesse e21cced9bb Refactor 2019-08-27 16:48:53 +10:00
Niels Andriesse a943be6c97 WIP 2019-08-27 14:56:33 +10:00
Niels Andriesse ba0da149ad Refactor 2019-08-27 13:42:57 +10:00
Niels Andriesse 06dba7ddd9 WIP 2019-08-27 12:45:01 +10:00
Niels Andriesse 6056575cdf Clean 2019-08-27 12:35:31 +10:00
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