Commit graph

128 commits

Author SHA1 Message Date
Matthew Chen 819c2b1ceb Remove Twisted Oak. 2018-07-23 13:24:33 -04:00
Michael Kirk b7288b2565 Move contact intersection into batched operation
// FREEBIE
2018-07-19 13:40:30 -06:00
Matthew Chen 094cf3691d Respond to CR. 2018-07-18 13:57:22 -04:00
Matthew Chen cc91cb3dbf Respond to CR. 2018-07-18 13:57:22 -04:00
Matthew Chen ace07ac62a Respond to CR. 2018-07-18 13:57:22 -04:00
Matthew Chen 77884913d8 Streamline SignalRecipient. 2018-07-18 13:57:22 -04:00
Matthew Chen b6489c6948 Streamline SignalRecipient. 2018-07-18 13:57:22 -04:00
Matthew Chen 05a4222b2d Streamline SignalRecipient. 2018-07-18 13:57:22 -04:00
Matthew Chen ef3933bfaa Streamline SignalRecipient. 2018-07-18 13:57:21 -04:00
Matthew Chen 9618fc16c5 Streamline SignalRecipient. 2018-07-18 13:57:21 -04:00
Matthew Chen ebe87348a2 Streamline SignalRecipient. 2018-07-18 13:57:21 -04:00
Matthew Chen d14f764b50 Streamline SignalRecipient. 2018-07-18 13:57:21 -04:00
Matthew Chen 3f4cd15f5b Use sending queue in websocket send failover to REST. 2018-07-05 09:57:28 -04:00
Michael Kirk 1e8c7d63b8 clarify sync logging 2018-07-03 15:39:31 -06:00
Michael Kirk 8576de0618 Fix: No contacts/groups after initial device link
The server caches your device list on the websocket, so sending on the
websocket to a just-linked device will always fail. We could close/open the
websocket, but that might be disruptive in it's own way. Instead we'll closely
mirror the Android approach, where WebSocket sends are attempted only one time,
and failure is handled by falling back to the original REST approach.

So note: we don't do any special handling of failures on the websocket
(409/410). We simply retry it with REST which will handle the 409/410/etc.

Consequently, we don't want to decrement our retry count for websocket sends.
2018-07-03 15:31:25 -06:00
Michael Kirk c48f2404a3 Fix overzealous assert
// FREEBIE
2018-06-15 10:28:07 -04:00
Matthew Chen f9f931fc2d Fix assert around failing sync message sends. 2018-06-14 15:07:09 -04:00
Matthew Chen 61ec865b6d Respond to CR. 2018-05-30 15:41:01 -04:00
Matthew Chen 4342b04bd3 Include response data in 'request over websocket' failures. 2018-05-30 15:37:59 -04:00
Matthew Chen 4d498563e7 Unify the socket manager's 'can send requests' logic. 2018-05-30 12:48:32 -04:00
Matthew Chen 21b54bee4f Fix breakage from recents changes in share extension. 2018-05-29 10:45:58 -04:00
Matthew Chen 8a76e778b5 Use websocket for sends. 2018-05-22 14:24:04 -04:00
Matthew Chen 5f1682deab Use websocket for sends. 2018-05-22 14:24:04 -04:00
Matthew Chen 5c7b98e5c4 Improve handling of unregistered users. 2018-05-14 16:45:06 -04:00
Matthew Chen 8489c55fde Mark send-to-self as sent. 2018-05-14 14:41:45 -04:00
Matthew Chen 9c2f619132 Don't echo messages sent to self 1:1. 2018-05-14 10:56:47 -04:00
Michael Kirk 77fc5571fb Implement avatar sending
// FREEBIE
2018-05-07 12:08:41 -04:00
Michael Kirk 48b4791b13 Download avatar attachment stream
// FREEBIE
2018-05-07 12:08:41 -04:00
Matthew Chen e7eaa7945d Handle completely skipped message sends. 2018-05-07 09:58:40 -04:00
Matthew Chen 0316a98eb8 Undo renaming of contactShare property of TSMessage. 2018-05-01 11:26:01 -04:00
Matthew Chen 0d8cfc5403 Rename contact share class to contact. 2018-05-01 11:03:25 -04:00
Matthew Chen 4b8a2fa8a3 Sketch out "contact share" model. 2018-05-01 11:03:25 -04:00
Matthew Chen bb96454070 More outgoing message fixes. 2018-04-30 11:00:57 -04:00
Matthew Chen 752bca313c Fix glitches in outgoing messages. 2018-04-27 16:37:09 -04:00
Matthew Chen f16e9a2920 Fix issues in outgoing messages status changes. 2018-04-26 14:17:41 -04:00
Matthew Chen 5c6f9ec088 Fix issues in outgoing messages status changes. 2018-04-26 14:12:34 -04:00
Matthew Chen 4de4a4b229 Respond to CR. 2018-04-25 10:49:19 -04:00
Matthew Chen 40ac0daa9a Respond to CR. 2018-04-25 10:49:19 -04:00
Matthew Chen 9e6062f21c Rework outgoing message state. 2018-04-25 10:49:19 -04:00
Matthew Chen 9275c67818 Rework outgoing message state. 2018-04-25 10:49:19 -04:00
Michael Kirk 754549adf1 Start timer for expiring message based on when read receipt was sent
// FREEBIE
2018-04-18 15:32:01 -04:00
Michael Kirk dfb2a034af Use explicit transactions.
- Start expiration within scope of existing transaction when we're
  already in a transaction

// FREEBIE
2018-04-18 15:32:01 -04:00
Matthew Chen 829cfd0428 Reduce oversize text size. 2018-04-11 17:57:53 -04:00
Michael Kirk 02efbd3069 Fix blip where thumbnail is initially missing from outgoing message
// FREEBIE
2018-04-09 12:47:57 -04:00
Michael Kirk 4399967e99 Comment cleanup, remove unnecessary includes
// FREEBIE
2018-04-09 12:47:56 -04:00
Michael Kirk fa2e1ba89b Fetch thumbnail when not available locally
// FREEBIE
2018-04-09 12:47:56 -04:00
Michael Kirk 42f454b075 Generate thumbnail when quoted attachment is available locally
// FREEBIE
2018-04-09 12:47:56 -04:00
Michael Kirk cb5d3d4f85 Use QuotedReplyModel to access attachment data
This view model loads the attachment when it's build.

// FREEBIE
2018-04-09 12:47:56 -04:00
Michael Kirk 253435b27f extract QuotedReplyDraft model 2018-04-09 12:47:56 -04:00
Michael Kirk 0b8b3b4f16 WIP: towards avatar attachment streams
// FREEBIE
2018-04-09 12:47:56 -04:00