Commit Graph

58 Commits (b5cc66262d4e7077b066b9a88d103456bd904e4a)

Author SHA1 Message Date
Mikunj b5cc66262d Added ttl property on TSOutgoingMessage.
Use this ttl value when sending a message.
6 years ago
Mikunj 705e5f939d Set pre key bundle in FriendRequestMessage and EndSessionMessage.
Updated PreKey Operations to not contact signal servers.
6 years ago
Mikunj 8b1d5ec26d Add OWSFriendRequestMessage.
Re-organised files.

This is just a subclass of TSOutgoingMessage so it will work as any message would.
6 years ago
Mikunj f8cccd8967 Show spinning cog if we are calculating the proof of work. 6 years ago
Matthew Chen e27e27cc3a Send and process 'recipient update' sync messages. 6 years ago
Matthew Chen 4f19d03bdc Send 'sent update' sync messages. 6 years ago
Matthew Chen 6ce84e7f9b Process 'sent update' transcripts. 6 years ago
Matthew Chen 31ea64bdaf Build link previews. 6 years ago
Matthew Chen a477e01a4a Apply LinkPreview model. 6 years ago
Michael Kirk 5671fd2520 Revert "Revert 'new sort id'."
This reverts commit ebae75af00.
6 years ago
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.
7 years ago
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
7 years ago
Matthew Chen 86e22edcb1 Send "sent message transcript" sync messages at the _end_ of a send, not after the first recipient is sent. 7 years ago
Matthew Chen 7e7fcc1698 Apply UD status from transcripts. 7 years ago
Matthew Chen a6eed30127 Add 'is ud' property to outgoing messages. 7 years ago
Matthew Chen ebae75af00 Revert 'new sort id'. 7 years ago
Michael Kirk df61316495 minimize diff senderTimestamp -> timestamp 7 years ago
Michael Kirk eef1368ad3 Timestamp audit step1: change signature
There is no change in functionality in this commit.

Apart from clarifying what the timestamp means (it's the timestamp of the
*sender*), this intentionally breaks all the call sites, so I could have a sane
way to thoroughly audit wherever we're passing in timestamps, to see where
we're depending on them to affect sort order.

For the sake of a cleaner diff of meaningful changes, instead of "fixing"
everything in this commit, I've just added comments and renamed signatures.
7 years ago
Matthew Chen fac7f6932f Rename TSGroupMetaMessage enum values. 7 years ago
Matthew Chen 8d814a5210 Code generate Swift wrappers for protocol buffers. 7 years ago
Matthew Chen ab31e5a07f Code generate Swift wrappers for protocol buffers. 7 years ago
Michael Kirk 0cf751d34f Newly added group members should have expire time
Send expire timer with group info updates and in group updates that add a user.
7 years ago
Michael Kirk 7df158120b Fix build warnings: mark initWithCoder as designated.
// FREEBIE
7 years ago
Matthew Chen 1343e4bc19 Preserve legacy outgoing message state; special case contact thread messages. 7 years ago
Michael Kirk d3cda951ef Fix/Simplify outgoing attachment proto building
// FREEBIE
7 years ago
Matthew Chen 0316a98eb8 Undo renaming of contactShare property of TSMessage. 7 years ago
Matthew Chen 0d8cfc5403 Rename contact share class to contact. 7 years ago
Matthew Chen 7490a55f61 Sketch out "contact share" model. 7 years ago
Matthew Chen 4b8a2fa8a3 Sketch out "contact share" model. 7 years ago
Matthew Chen bb96454070 More outgoing message fixes. 7 years ago
Matthew Chen 204d379603 Respond to CR. 7 years ago
Matthew Chen 4de4a4b229 Respond to CR. 7 years ago
Matthew Chen 6486b99415 Clean up ahead of PR. 7 years ago
Matthew Chen 9e6062f21c Rework outgoing message state. 7 years ago
Matthew Chen 9275c67818 Rework outgoing message state. 7 years ago
Michael Kirk eec7678979 Group's meta message defaults to "Delivery"
// FREEBIE
7 years ago
Michael Kirk 253435b27f extract QuotedReplyDraft model 7 years ago
Michael Kirk 0b8b3b4f16 WIP: towards avatar attachment streams
// FREEBIE
7 years ago
Matthew Chen 9085609087 Fix interaction initializers and tests. 7 years ago
Matthew Chen 8e4f2ca0ed Rework proto schema changes for quoted replies.
Sketch out model changes for quoted replies.

Sketch out quoted reply input preview.

Send quoted messages protos.

Update models to reflect quoted messages.

Rework interaction initializers.

Rework interaction initializers.

Add debug UI methods for generating quoted reply variations.

Add debug UI methods for generating quoted reply variations.
7 years ago
Michael Kirk e20f44024c WIP: Support sending attachment captions
Looks fine on other clients, but locally we don't display the caption.

// FREEBIE
8 years ago
Matthew Chen 2f84e0c426 Fix calling; be explicit about which messages should be saved. 8 years ago
Matthew Chen 00feb14b10 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen c6160a5a1e Rework the "update with..." methods to avoid re-saving deleted models. 8 years ago
Matthew Chen fce52841f9 Don't resurrect zombies. 8 years ago
Matthew Chen 9b5affb390 Send silent messages where appropriate.
// FREEBIE
8 years ago
Matthew Chen d557817bb4 Format message statuses with date if possible.
// FREEBIE
8 years ago
Matthew Chen a4d285f50d Respond to CR.
// FREEBIE
8 years ago
Matthew Chen aa7329013d Handle new-style delivery receipts.
// FREEBIE
8 years ago
Matthew Chen 25c40ea3cf Handle new-style delivery receipts.
// FREEBIE
8 years ago