Commit graph

964 commits

Author SHA1 Message Date
Matthew Chen 63d88ef5cb Sketch out TypingIndicatorCell. 2018-11-01 16:44:47 -04:00
Matthew Chen a5ebe394d1 Include typing indicators in configuration sync messages; emit when that value changes. 2018-11-01 15:22:53 -04:00
Michael Kirk 77bd9b8852 Extract most Gallery functionality from the gallery NavigationController.
By not overriding the initializer for an OWSNavigationController subclass,
we can use the dynamic disaptch intialization chain.

The root difficulty here is that super.init(navBarClass:) wants to call
self.init(nibNam)
2018-11-01 12:53:59 -06:00
Michael Kirk 6d8a7ed800 things working 2018-11-01 12:53:59 -06:00
Michael Kirk 1af750363a fix media-gallery doesn't respect call banner 2018-11-01 12:53:59 -06:00
Michael Kirk 85a4fc7b66 restore calling banner
The `statusBarDidChange` is called when entering but not leaving landscape mode
we we've got to update manually before showing the call banner.
2018-11-01 08:43:59 -06:00
Michael Kirk 19f2d0db48 WIP: Media Landscape Mode 2018-11-01 08:43:59 -06:00
Matthew Chen a98c82645c Start work on typing indicators.
* Update proto schema to reflect typing indicators.
* Sketch out OWSTypingIndicatorMessage.
* Add "online" to the service message params.
* Sketch out logic to send typing indicator messages.
* Sketch out OWSTypingIndicators class.
2018-10-31 12:11:29 -04:00
Matthew Chen 40aa78e001 Merge remote-tracking branch 'origin/release/2.31.0' 2018-10-31 11:42:41 -04:00
Matthew Chen 698e48f2d8 Respond to security review. 2018-10-30 16:18:23 -04:00
Matthew Chen c5f4711595 Apply refinements to UD logic. 2018-10-30 16:18:22 -04:00
Matthew Chen 2541be1619 Apply refinements to UD logic. 2018-10-30 16:18:22 -04:00
Michael Kirk cb9aa6304c find -E . -type f -regex ".*\.(m|h)" -exec sed -i "" -e "s/try_/throws_/" {} \; 2018-10-30 11:35:34 -06:00
Michael Kirk 9d2731c9b8 exception auditing OWSRaiseException 2018-10-30 11:35:34 -06:00
Michael Kirk 3a6aafc454 Swift Exception wrap NSData+keyVersionByte 2018-10-30 11:35:34 -06:00
Michael Kirk 6968dbab17 Update UIDevice on main thread 2018-10-26 15:32:12 -06:00
Michael Kirk 5632bd2d83 Use reference counting to disable proximity monitoring after audio message
Multiple overlapping activities require proximity monitoring (namely,
CallViewController and listening to audio messages).

These activities can overlap arbitrarily, so we use a reference counting
strategy to keep proximity monitoring on as long as one of these activities is
active.
2018-10-26 15:32:12 -06:00
Michael Kirk 68353631d4 copy avatar file when rotating, since updating avatarURL entails removing the underlying file 2018-10-26 15:31:21 -06:00
Matthew Chen 737f64b761 Improve UD logging. 2018-10-26 16:09:20 -04:00
Matthew Chen 3f10ce7408 Tweak profile fetch auth behavior in unknown mode case. 2018-10-26 16:09:20 -04:00
Matthew Chen 36f39d9a30 Remove SSKUnidentifiedAccess. 2018-10-26 16:09:20 -04:00
Matthew Chen 7de289f6be Remove SSKUnidentifiedAccess. 2018-10-26 16:09:20 -04:00
Matthew Chen 5d18497ade Try random UD access keys in profile gets. 2018-10-26 16:09:20 -04:00
Matthew Chen dbe635f721 Try random UD access keys in profile gets. 2018-10-26 16:09:20 -04:00
Matthew Chen 408008d3e7 Use different contact avatar assets depending on size of output. 2018-10-26 15:18:45 -04:00
Matthew Chen 4ea6d72008 Improve default avatar quality. 2018-10-26 15:18:45 -04:00
Matthew Chen 70f274598c Avoid deadlocks in contact manager. 2018-10-26 14:19:04 -04:00
Matthew Chen f26241ebd0 Avoid deadlocks in contact manager. 2018-10-26 14:10:58 -04:00
Matthew Chen 5b339a642b Respond to CR. 2018-10-25 15:39:16 -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 763acae158 Use thread to ensure consistent colors in contact cells. 2018-10-25 09:48:57 -04:00
Matthew Chen 28f37a7a34 Update contacts cells' dependencies. 2018-10-25 09:48:57 -04:00
Michael Kirk ce9ca1bdaa audio player type 2018-10-24 07:46:27 -06:00
Michael Kirk 4b4b18c625 Proximity playsback through earpiece
This is kind of unfortunate because playback doesn't allow the earpiece as an
output device.
2018-10-24 07:46:27 -06:00
Michael Kirk 3b4188f34b hoist audio session singleton to Environment 2018-10-24 07:46:25 -06:00
Michael Kirk 3d022adf4e WIP: audio activities 2018-10-24 07:44:50 -06:00
Matthew Chen b338863663 Always disable UD for users without verifier. 2018-10-22 14:29:08 -04:00
Matthew Chen d656ae1017 Fix edge cases around UD v. linked devices. 2018-10-22 12:31:28 -04:00
Matthew Chen 64aa43edb1 Only enable UD if UD is supported by all linked devices. 2018-10-20 10:27:15 -04:00
Matthew Chen 9c161e913d Respond to CR; handle device changes in SignalRecipient as well. 2018-10-19 17:21:42 -04:00
Matthew Chen 553d1ac3bc Respond to CR. 2018-10-19 16:43:14 -04:00
Matthew Chen 2894db0d6e Add request maker. 2018-10-19 16:35:19 -04:00
Matthew Chen 99d0495ec7 Respond to CR. 2018-10-18 16:58:02 -04:00
Matthew Chen 5809d026d9 Clean up ahead of PR. 2018-10-18 16:47:18 -04:00
Matthew Chen bbcbbafaab Sync local profile key after rotating it. 2018-10-18 16:47:18 -04:00
Matthew Chen 693b3e13a9 Revert "Sync local profile key after rotating it."
This reverts commit ddbd20e706.
2018-10-18 16:00:48 -04:00
Matthew Chen ddbd20e706 Sync local profile key after rotating it. 2018-10-18 15:59:43 -04:00
Matthew Chen 6d075747c0 Update local profile after registration and profile key rotation. 2018-10-18 12:26:13 -04:00
Matthew Chen 9322442881 Don't assume all linked devices support UD. 2018-10-18 12:26:13 -04:00