Commit graph

101 commits

Author SHA1 Message Date
Niels Andriesse 40bb4ba1a4 Set device link message TTL, clean & add more analytics 2019-10-03 14:45:00 +10:00
Niels Andriesse 39c497f13d Clean up logging 2019-06-13 14:34:19 +10:00
Niels Andriesse adcb469b53 Integrate swarm changes into message receiving code 2019-05-22 12:06:02 +10:00
Niels Andriesse dc103c7bd6 Refactor 2019-05-21 15:21:51 +10:00
Niels Andriesse 1c73cf5114 Re-order files 2019-05-21 11:40:29 +10:00
Niels Andriesse 6adc8cf014 Add isFriendRequestExpired flag 2019-05-20 12:31:21 +10:00
Niels Andriesse 7493e037c9 Fix minor code style issues 2019-05-20 11:20:03 +10:00
Mikunj Varsani c43295eb7c
Loki session reset (#14)
* Added session reset.

* Hooked up session reset internals to UI.

* Send empty message when we have received an end session message.

* Verify incoming PreKeyWhisperMessage.

* Fix indentations in SessionReset.md
2019-05-17 10:11:06 +10:00
Niels Andriesse 2b490b5ad5 Use MessageFetcherJob for message receiving & fix decoding bug 2019-05-10 11:17:09 +10:00
Michael Kirk 5361720b19 log token in debug 2019-02-26 10:09:29 -07:00
Michael Kirk 1bfe691895 In app notifications for iOS10+
Extract shared notification presention/response

Implement adapters which use that logic for modern UNUserNotification and
legacy UINotifications
2019-02-01 17:44:13 -07:00
Michael Kirk b7ab036c04 warn_unused_result on AnyPromise methods 2018-12-11 09:37:44 -07:00
Michael Kirk b6e336a071 Merge tag '2.31.1.0' into release/2.32.0 2018-11-28 22:07:15 -07:00
Michael Kirk 24a19eaaca update REST endpoint ack url 2018-11-28 21:50:55 -07:00
Michael Kirk 12b916ad36 Merge tag '2.31.0.37' into release/2.32.0 2018-11-15 10:35:03 -06:00
Matthew Chen 210da50868 Rework ACK of messages fetched via REST. 2018-11-14 17:26:39 -05:00
Michael Kirk 5da525ce2e Merge remote-tracking branch 'origin/release/2.31.0' 2018-11-09 15:49:53 -06:00
Matthew Chen 1ac74cfb81 Modify MessageFetcherJob to handle incoming UD messages. 2018-11-09 13:46:08 -05:00
Michael Kirk 27cb91e9c8 Plumb through messageAlbumId so an Attachment knows what album (if any) it
belongs to.
2018-11-08 12:52:08 -06:00
Matthew Chen 57de089118 Add support for album captions to models. 2018-11-07 10:54:17 -05:00
Matthew Chen 39c820b866 Distinguish 'app will/did become ready' events. 2018-11-05 09:04:57 -05:00
Michael Kirk 0c2bb439f9 kick-queue upon reachability 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
Michael Kirk 037bdebfab clarify backoff delay examples 2018-10-25 11:54:59 -06:00
Michael Kirk 86a0efedc6 Don't delete session upon starting retry 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 bbcbbafaab Sync local profile key after rotating it. 2018-10-18 16:47:18 -04:00
Matthew Chen 693b3e13a9 Revert "Sync local profile key after rotating it."
This reverts commit ddbd20e706.
2018-10-18 16:00:48 -04:00
Matthew Chen ddbd20e706 Sync local profile key after rotating it. 2018-10-18 15:59:43 -04:00
Matthew Chen 8830f0a594 Clean up ahead of PR. 2018-10-15 15:11:20 -04:00
Matthew Chen 0b4ed1175d Create AppEnvironment. 2018-10-15 15:08:37 -04:00
Matthew Chen d7e52367ff Create AppEnvironment. 2018-10-15 15:08:37 -04:00
Michael Kirk d6a6024f37 Update PromiseKit 2018-10-13 16:04:20 -06:00
Matthew Chen 3b06434d4f Split out second web socket. 2018-10-05 12:48:19 -04:00
Matthew Chen f9e90215b3 Respond to CR. 2018-10-05 09:28:53 -04:00
Matthew Chen ccb67f49a3 Fix issues in UD send & receive. 2018-10-04 11:56:37 -04:00
Matthew Chen 3eb84ed0e0 Move message processing singletons to SSKEnvironment. 2018-10-03 09:25:29 -04:00
Matthew Chen 9f2a15925a Add new envelope properties for UD. 2018-10-03 09:15:32 -04:00
Matthew Chen 7d727b7ac9 Modify proto wrapper builders to require required fields. 2018-10-01 09:08:23 -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 e1db60c1c0 Rework creation of singletons. 2018-09-19 15:11:26 -04:00
Matthew Chen cc117b385c Modify environment accessors to use our 'shared' convention. 2018-09-07 16:20:59 -04:00
Matthew Chen 3a12446be8 Modify environment accessors to use our 'shared' convention. 2018-09-07 16:20:41 -04:00
Matthew Chen 5b50e81b4f Rename fail macros in Swift. 2018-08-27 10:27:48 -04:00
Matthew Chen cf6f3841a8 Apply new Swift logging. 2018-08-27 10:02:28 -04:00
Matthew Chen 26001e49d1 Unify log tags. 2018-08-15 10:24:29 -04:00
Matthew Chen e5eda8b45d Add convenience initializers to proto wrappers. 2018-08-08 13:08:47 -04:00
Matthew Chen 21523ac522 Respond to CR. 2018-08-07 15:29:21 -04:00