Commit graph

509 commits

Author SHA1 Message Date
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
Matthew Chen 48c4576c06 Fix failing test. 2018-10-15 15:51:43 -04:00
Matthew Chen 0b4ed1175d Create AppEnvironment. 2018-10-15 15:08:37 -04:00
Matthew Chen d7e52367ff Create AppEnvironment. 2018-10-15 15:08:37 -04:00
Matthew Chen 8fdf6009f9 Sync contacts after rotating profile key. 2018-10-12 17:19:00 -04:00
Matthew Chen 3b06434d4f Split out second web socket. 2018-10-05 12:48:19 -04:00
Matthew Chen 3eb84ed0e0 Move message processing singletons to SSKEnvironment. 2018-10-03 09:25:29 -04:00
Matthew Chen f7379deb69 Add setup method to UD manager. Try to verify server certificate expiration. 2018-10-02 13:24:12 -04:00
Matthew Chen 71da312336 Post-SMK ud changes. 2018-10-02 13:19:41 -04:00
Matthew Chen 0125535d4d Pull out SignalCoreKit. 2018-10-01 09:06:40 -04:00
Matthew Chen b076f14964 Swift exit(). 2018-09-27 16:56:54 -04:00
Matthew Chen 87836f506b Move more singletons to SSKEnvironment. 2018-09-21 09:06:48 -04:00
Matthew Chen e1db60c1c0 Rework creation of singletons. 2018-09-19 15:11:26 -04:00
Matthew Chen 9b94580dae Update assertions.
* Streamline precompiled headers.
* Remove obsolete assertions in Constraints.h.
2018-09-14 14:30:06 -04:00
Matthew Chen df7acfeed3 Simplify OWSPreferences access. 2018-09-07 16:28:21 -04:00
Matthew Chen 3a12446be8 Modify environment accessors to use our 'shared' convention. 2018-09-07 16:20:41 -04:00
Matthew Chen bd05cdc031 Rename TextSecureKitEnv to SSKEnvironment. 2018-09-07 16:19:00 -04:00
Michael Kirk c7662b5a86 Step 2/2 %s/OWSAssert/OWSAssertDebug for existing previous assert semantics
Going forward, we want to prefer safer asserts, but we don't want to blindly
apply crashing asserts across the codebase
2018-09-07 10:00:48 -06:00
Matthew Chen cc5a480baa Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen c0d486b1f1 Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen 3a50377902 Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen 713606271c Rename fail macros in Obj-C. 2018-08-27 10:29:51 -04:00
Michael Kirk 9662b3cb1e Wait a week before nagging when a new release comes out 2018-08-08 10:26:00 -06:00
Michael Kirk e5b3cbd00c Use StoreKit for reviews 2018-08-07 15:56:52 -06:00
Matthew Chen 45e782c243 Revamp orphan data cleaner. 2018-08-07 13:07:26 -04:00
Michael Kirk 0bc03b0fd4 Move seed 2018-08-03 14:26:43 -06:00
Matthew Chen d6cb07cc4a Respond to CR. 2018-08-01 09:42:38 -04:00
Michael Kirk ef9a0880ae Fix analyzer warnings 2018-07-18 10:24:08 -06:00
Michael Kirk d591fb7f2c Fix some compiler warnings 2018-07-17 19:22:58 -06:00
Matthew Chen 158aa3abc4 Tweak system messages; incomplete vs. missed calls. 2018-07-11 15:34:16 -04:00
Michael Kirk c40c2a632b Merge tag '2.27.1.4' 2018-07-06 18:19:43 -06:00
Michael Kirk 3eb7e9271e Fix: second reply from lockscreen doesn't send
// FREEBIE
2018-07-06 17:56:05 -06:00