Commit graph

216 commits

Author SHA1 Message Date
Matthew Chen
f6591fac25 Add debug UI for multi-image sends. 2018-11-02 13:04:05 -04:00
Matthew Chen
b90fee08bd Merge remote-tracking branch 'origin/release/2.31.0' 2018-11-01 16:59:54 -04:00
Matthew Chen
3eab5b82cc Respond to CR. 2018-11-01 16:06:03 -04:00
Matthew Chen
3cc1988f20 Fix "413 on prekey fetch" errors. 2018-11-01 15:59:11 -04:00
Matthew Chen
97e234f785 Fix "413 on prekey fetch" errors. 2018-11-01 15:59:11 -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
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
c4f8975308 Swift Exception wrap Curve25519 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
b622b3a020 Exception wrap TSDerivedSecrets 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
33f0a32e59 Improve UD logging. 2018-10-26 17:21:49 -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
Michael Kirk
d35b735d76 Log message type in message sender 2018-10-25 11:54:59 -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
9df94b8477 Rework sync transcript sending. 2018-10-24 10:53:23 -04:00
Matthew Chen
21cf467bb4 Don't use websocket after 409/410. 2018-10-23 15:09:22 -04:00
Matthew Chen
b003049d9c Improve UD logging. 2018-10-22 14:29:08 -04:00
Matthew Chen
8c8b3a95b8 Respond to CR. 2018-10-22 14:04:30 -04:00
Matthew Chen
d656ae1017 Fix edge cases around UD v. linked devices. 2018-10-22 12:31:28 -04:00
Matthew Chen
86e22edcb1 Send "sent message transcript" sync messages at the _end_ of a send, not after the first recipient is sent. 2018-10-19 17:22:28 -04:00
Matthew Chen
55369a1ca3 Only send 'sent message transcript' sync messages using UD. 2018-10-19 16:45:50 -04:00
Matthew Chen
94c7b72361 Only send "sent message transcript" sync messages using UD. 2018-10-19 16:45:50 -04:00
Matthew Chen
2894db0d6e Add request maker. 2018-10-19 16:35:19 -04:00
Matthew Chen
ab6c4a4c36 Try prekey fetches via websocket. 2018-10-19 09:03:47 -04:00
Matthew Chen
d44e414b54 Clean up message sender. 2018-10-18 13:50:48 -04:00
Matthew Chen
353f91db64 Respond to CR. 2018-10-18 12:12:13 -04:00
Matthew Chen
9519e7961a Rework recipient device updates. 2018-10-18 11:21:16 -04:00
Matthew Chen
a00ebdf4a2 Fix UD auth edge cases. 2018-10-18 11:21:16 -04:00
Matthew Chen
4d89670f19 Fix UD auth edge cases. 2018-10-18 11:21:16 -04:00
Matthew Chen
f2a1df4e99 Update device message auditing to reflect UD behavior. 2018-10-11 13:00:53 -04:00
Matthew Chen
a6eed30127 Add 'is ud' property to outgoing messages. 2018-10-10 14:32:14 -04:00
Matthew Chen
0d588346f1 Fix rebase breakage. 2018-10-10 14:28:02 -04:00
Matthew Chen
a4cdc5272c Handle UD auth errors in websocket sends. 2018-10-10 14:22:41 -04:00
Michael Kirk
0be1f8cca2 Move UD auth into request initializers 2018-10-10 09:09:11 -06:00
Michael Kirk
39ba413439 Track UD mode enum instead of two booleans 2018-10-10 09:09:11 -06:00
Matthew Chen
75e59bbc6f Discard self-sent messages during the decryption process. 2018-10-10 09:10:45 -04:00
Matthew Chen
e47b69e0aa Send sync messages to self via UD (only); discard self-sent sync messages. 2018-10-10 09:10:45 -04:00
Matthew Chen
01ca416f42 Fix rebase breakage. 2018-10-05 12:53:54 -04:00
Matthew Chen
2f2b6b071b UD sends over web sockets; update web socket auth for UD. 2018-10-05 12:49:40 -04:00