Commit graph

977 commits

Author SHA1 Message Date
Matthew Chen 0341f5dc2b Modify ConversationViewItem to support media galleries. 2018-11-06 15:23:09 -05:00
Michael Kirk 4c5d46e8f8 Custom photo picker, respects theme/call banner
- share GridViewCell
- Multiple image selection, with feature flag, cant currently approve multiple
2018-11-05 22:23:40 -06:00
Matthew Chen 1c7add2b8f Respond to CR. 2018-11-05 09:16:17 -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
Matthew Chen c7d427029b Respond to CR. 2018-11-02 13:17:36 -04:00
Matthew Chen ecba67b511 Add debug UI for multi-image sends. 2018-11-02 13:04:05 -04:00
Matthew Chen f6591fac25 Add debug UI for multi-image sends. 2018-11-02 13:04:05 -04:00
Matthew Chen d04f1e6e36 Add debug UI for multi-image sends. 2018-11-02 13:04:05 -04:00
Matthew Chen 7c65a98069 Fix breakage from typing indicators. 2018-11-01 17:11:59 -04:00
Matthew Chen b90fee08bd Merge remote-tracking branch 'origin/release/2.31.0' 2018-11-01 16:59:54 -04:00
Matthew Chen 58f36fba47 Disable typing indicators by default for legacy users. 2018-11-01 16:52:31 -04:00
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
Matthew Chen ac051fc89e Inform linked devices about profile changes. 2018-11-01 14:38:26 -04: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