Commit graph

93 commits

Author SHA1 Message Date
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
Matthew Chen
a5ffbdebb3 Remove Obj-c proto parser. 2018-08-07 15:10:48 -04:00
Matthew Chen
45e782c243 Revamp orphan data cleaner. 2018-08-07 13:07:26 -04:00
Matthew Chen
827f979282 Code generate Swift wrappers for protocol buffers. 2018-08-01 15:55:00 -04:00
Matthew Chen
77810f5918 Code generate Swift wrappers for protocol buffers. 2018-08-01 15:36:52 -04:00
Matthew Chen
2b05bbc0aa Code generate Swift wrappers for protocol buffers. 2018-08-01 11:20:55 -04:00
Matthew Chen
f814157a9e Code generate Swift wrappers for protocol buffers. 2018-08-01 11:20:55 -04:00
Matthew Chen
579e88bdc2 Improve nullability handling for SignalAccount. 2018-08-01 09:22:56 -04:00
Michael Kirk
ac461ca2d1 Fixup parser: Robust to servers various "empty" types
For base64Encoded data, sometimes the server sends "null" sometimes the server
sends an empty string.
2018-07-26 11:56:22 -06:00