Commit graph

134 commits

Author SHA1 Message Date
Niels Andriesse 234a2827b3 Fix release issues 2019-06-25 16:17:05 +10:00
Mikunj cda1c51b3c Updated to use LokiProfile proto. 2019-05-29 09:41:41 +10:00
Niels Andriesse 845c4f700a Fix crash 2019-05-28 15:00:18 +10:00
Niels Andriesse 1462a5cb6b Handle receiving of sender display name 2019-05-28 13:04:32 +10:00
Niels Andriesse c60f4cda0d Include sender display name in messages 2019-05-28 11:47:46 +10:00
Mikunj f084c804c5 Fix ttl not being in milliseconds. 2019-05-23 16:24:58 +10:00
Niels Andriesse ab06a1362e Update isCalculatingPoW on send failure 2019-05-23 16:15:04 +10:00
Niels Andriesse 20472c8bed Fix minor code style issues 2019-05-22 14:29:59 +10:00
Mikunj b5cc66262d Added ttl property on TSOutgoingMessage.
Use this ttl value when sending a message.
2019-05-22 13:00:32 +10:00
Mikunj 705e5f939d Set pre key bundle in FriendRequestMessage and EndSessionMessage.
Updated PreKey Operations to not contact signal servers.
2019-05-14 09:24:20 +10:00
Niels Andriesse 4da8d33932 Clean 2019-05-10 13:38:00 +10:00
Mikunj 8b1d5ec26d Add OWSFriendRequestMessage.
Re-organised files.

This is just a subclass of TSOutgoingMessage so it will work as any message would.
2019-05-09 12:19:12 +10:00
Mikunj f8cccd8967 Show spinning cog if we are calculating the proof of work. 2019-05-06 16:12:14 +10:00
Matthew Chen 5f0de5c36d Respond to CR. 2019-02-21 15:21:00 -05:00
Matthew Chen e27e27cc3a Send and process 'recipient update' sync messages. 2019-02-21 15:13:31 -05:00
Matthew Chen 4f19d03bdc Send 'sent update' sync messages. 2019-02-21 15:13:31 -05:00
Matthew Chen 6ce84e7f9b Process 'sent update' transcripts. 2019-02-21 15:13:31 -05:00
Matthew Chen 4feb0011d7 Reduce logging. 2019-01-31 15:48:50 -05:00
Matthew Chen 2dcc79fbca Fix issues around link previews. 2019-01-22 10:15:50 -05:00
Matthew Chen 31ea64bdaf Build link previews. 2019-01-22 09:42:25 -05:00
Matthew Chen a477e01a4a Apply LinkPreview model. 2019-01-14 16:20:54 -05:00
Michael Kirk df79fc9ed0 Move String+OWS into SSK
name Switcharoo String+OWS/String+SSK categories to reflect where they live.
2018-12-20 09:54:08 -07:00
Michael Kirk 5671fd2520 Revert "Revert 'new sort id'."
This reverts commit ebae75af00.
2018-12-19 15:16:36 -07: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
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 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 f1646b6cbc Move db connections to environments. 2018-10-16 13:00:50 -04:00
Matthew Chen c5f52cc0b9 Respond to CR. 2018-10-12 13:49:05 -04:00
Matthew Chen 7e7fcc1698 Apply UD status from transcripts. 2018-10-12 13:49:05 -04:00
Matthew Chen bda6fdf44f Respond to CR. 2018-10-10 14:34:14 -04:00
Matthew Chen a6eed30127 Add 'is ud' property to outgoing messages. 2018-10-10 14:32:14 -04:00
Matthew Chen 7d727b7ac9 Modify proto wrapper builders to require required fields. 2018-10-01 09:08:23 -04:00
Matthew Chen 0125535d4d Pull out SignalCoreKit. 2018-10-01 09:06:40 -04:00
Matthew Chen ebae75af00 Revert 'new sort id'. 2018-09-27 19:40:51 -04:00
Michael Kirk df61316495 minimize diff senderTimestamp -> timestamp 2018-09-26 09:52:33 -06:00
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.
2018-09-26 09:52:33 -06:00
Matthew Chen bd05cdc031 Rename TextSecureKitEnv to SSKEnvironment. 2018-09-07 16:19:00 -04:00
Michael Kirk c7662b5a86 Step 2/2 %s/OWSAssert/OWSAssertDebug for existing previous assert semantics
Going forward, we want to prefer safer asserts, but we don't want to blindly
apply crashing asserts across the codebase
2018-09-07 10:00:48 -06:00
Matthew Chen fac7f6932f Rename TSGroupMetaMessage enum values. 2018-09-04 09:30:01 -04:00
Matthew Chen 9477606732 Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen f473f60111 Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen cc5a480baa Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen 03829779cc Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen 3a50377902 Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen 713606271c Rename fail macros in Obj-C. 2018-08-27 10:29:51 -04:00
Matthew Chen d3a4447f81 Convert overzealous assert. 2018-08-06 09:34:26 -04:00
Matthew Chen 3f47524373 Respond to CR. 2018-08-03 14:52:55 -04:00
Matthew Chen 8d814a5210 Code generate Swift wrappers for protocol buffers. 2018-08-03 14:05:20 -04:00
Matthew Chen 950cab7eb9 Code generate Swift wrappers for protocol buffers. 2018-08-03 14:05:20 -04:00
Matthew Chen ff8565dbd5 Code generate Swift wrappers for protocol buffers. 2018-08-03 14:05:20 -04:00