Commit graph

1543 commits

Author SHA1 Message Date
Matthew Chen 1db5a157ce Respond to CR. 2018-11-01 15:22:53 -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
Matthew Chen 33f5398ba8 Update proto schema for configuration messages to reflect typing indicators setting. 2018-11-01 15:22:53 -04:00
Matthew Chen ea734ad171 Respond to CR. 2018-11-01 14:34:05 -04:00
Matthew Chen a09cb16e74 Add typing indicators setting. 2018-11-01 14:28:39 -04:00
Michael Kirk 85f85d9c3a fix debug crash 2018-10-31 16:14:27 -06:00
Michael Kirk fe15a260ef Merge branch 'release/2.31.0' 2018-10-31 16:13:54 -06:00
Matthew Chen 3729398507 Request profile fetches on main thread. 2018-10-31 15:01:33 -04:00
Matthew Chen 3d0e7386a4 Respond to CR. 2018-10-31 12:19:07 -04: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 7d8b20d091 Apply refinements to UD logic. 2018-10-30 16:18:22 -04:00
Matthew Chen 44f6774396 Apply refinements to UD logic. 2018-10-30 16:18:22 -04:00
Matthew Chen c28d131f97 Respond to CR. 2018-10-30 16:18:22 -04:00
Matthew Chen e11d43d1f8 Respond to CR. 2018-10-30 16:18:22 -04:00
Matthew Chen ee87f1b489 Fix test breakage. 2018-10-30 16:18:22 -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 1dea927a3f Remove some usage of throwswrapped_ in udmanager since we don't need to
propogate the wrapped exception anyway.
2018-10-30 11:35:34 -06:00
Michael Kirk 3d9cd4f4ed CR: comments and code clarity 2018-10-30 11:35:34 -06:00
Michael Kirk 3bef78335d find -E . -type f -regex ".*\.(m|h|swift)" -exec sed -i "" -e "s/trywrapped_/throwswrapped_/g" {} \; 2018-10-30 11:35:34 -06: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 8544c86427 Swift Exception wrap HKDFKit 2018-10-30 11:35:34 -06:00
Michael Kirk c4f8975308 Swift Exception wrap Curve25519 2018-10-30 11:35:34 -06:00
Michael Kirk c686e766b1 Exception audit, fail directly where intended 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 5f5ec9b82a ExceptionWrap loadPreKey 2018-10-30 11:35:34 -06:00
Michael Kirk b622b3a020 Exception wrap TSDerivedSecrets for Swift 2018-10-30 11:35:34 -06:00
Michael Kirk 8d823193f1 Exception wrap WhisperMessage for Swift 2018-10-30 11:35:34 -06:00
Michael Kirk 1482c600b4 Exception wrap PreKeyWhisperMessage for Swift 2018-10-30 11:35:34 -06:00
Michael Kirk 60769a3d17 Exception wrap SessionCipher for Swift 2018-10-30 11:35:34 -06:00
Matthew Chen a5f715eca1 Fix network manager error wrapping. 2018-10-29 16:42:33 -04:00
Matthew Chen deafc749d1 Fix UD manager tests. 2018-10-29 16:41:02 -04:00
Michael Kirk ccd30e0e1f more logging 2018-10-29 13:39:34 -06:00
Michael Kirk e26db74fcd only check prekeys when decrypting a PKWM 2018-10-29 13:38:59 -06:00
Michael Kirk af3102441d ensure device updates are persisted
Previously we'd skip saves when latest was the same instance as self, which was
*at least* occurring during the 404 handler for prekey fetching while message
sending.

In practice this was cached, so it would be one wasted request per recipient
per launch.
2018-10-29 13:38:25 -06:00
Matthew Chen 33f0a32e59 Improve UD logging. 2018-10-26 17:21:49 -04:00
Matthew Chen 302da66017 Fix UD access logic. 2018-10-26 17:21:23 -04:00
Matthew Chen 737f64b761 Improve UD logging. 2018-10-26 16:09:20 -04:00
Matthew Chen ad59b2f6d2 Move "ud access for sends" logic into UD manager. 2018-10-26 16:09:20 -04:00
Matthew Chen 7de289f6be Remove SSKUnidentifiedAccess. 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 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
Michael Kirk c4677c9d4f CR: add some reachability asserts 2018-10-25 12:17:58 -06:00
Michael Kirk 0c2bb439f9 kick-queue upon reachability 2018-10-25 11:56:39 -06:00
Michael Kirk 54c63c7a2e Reachability Singleton 2018-10-25 11:56:39 -06:00
Michael Kirk b8e4bfff86 shuffle isReady->isSetup, centralize starting workStep 2018-10-25 11:56:39 -06:00