Commit Graph

47 Commits

Author SHA1 Message Date
Michael Kirk b860dce7f9 Swift protos for Envelope 2018-07-25 13:04:26 -06:00
Matthew Chen 212891c50d Detect and handle corrupt database views. 2018-04-25 09:30:23 -04:00
Matthew Chen 50a59c907d Detect and handle corrupt database views. 2018-04-25 09:30:23 -04:00
Matthew Chen d3b484482c Detect and handle corrupt database views. 2018-04-25 09:30:23 -04:00
Matthew Chen c5981b164b Notify users of corrupt messages. 2018-04-24 13:41:44 -04:00
Matthew Chen 5ce39337ed Handle malformed protos. 2018-04-16 16:15:46 -04:00
Matthew Chen d6f4db1523 Rename TSStorageManager to OWSPrimaryStorage. 2018-03-06 17:12:13 -03:00
Matthew Chen e12a1e984a Work on two-factor auth settings UI. 2018-03-01 15:38:59 -05:00
Matthew Chen b7958262ba Respond to CR. 2018-02-14 16:06:47 -05:00
Matthew Chen 6f28c75257 Fix glitch in batch processing of incoming messages. 2018-02-14 14:56:47 -05:00
Matthew Chen 074046b98e Add protocol context to protocol kit. 2018-02-09 10:31:29 -05:00
Matthew Chen a30170b3b2 Prefer "app is ready" flag to "storage is ready" flag. 2018-01-30 11:34:00 -05:00
Matthew Chen 5cf89a0f3d Register all database views asynchronously. 2018-01-30 10:30:28 -05:00
Matthew Chen 15b8e58324 Retain changes from session database branch. 2018-01-12 10:23:54 -05:00
Matthew Chen fe67cd924c Rework database view registration. 2017-12-19 11:42:06 -05:00
Matthew Chen 137fe6fb8b Pull out OWSStorage base class for TSStorageManager. 2017-12-19 11:16:01 -05:00
Matthew Chen f9ce34f553 Improve background task logic. 2017-12-19 11:05:17 -05:00
Matthew Chen 5adf98788d Use background task during message processing. 2017-12-19 11:05:17 -05:00
Matthew Chen 3643414da1 Respond to CR. 2017-12-15 11:16:07 -05:00
Matthew Chen 571840b1dc Update YapDatabase. 2017-12-15 11:11:04 -05:00
Matthew Chen 9da165b846 Continue conversion of app setup. 2017-12-05 11:19:11 -05:00
Matthew Chen e712e8bfc4 Use AppContext to resolve share extension FIXMEs. 2017-11-30 10:12:24 -05:00
Matthew Chen 00feb14b10 Respond to CR.
// FREEBIE
2017-11-15 13:15:48 -05:00
Matthew Chen 6e840ff956 Fix build warnings from XCode 9. 2017-11-09 02:52:44 -05:00
Matthew Chen 834ad3f8e1 Respond to CR.
// FREEBIE
2017-09-27 14:22:01 -04:00
Matthew Chen 01bda556c8 Fix class rename.
// FREEBIE
2017-09-27 14:22:01 -04:00
Matthew Chen 6b8c9b6bcf Iterate the names of the incoming message queue extensions.
// FREEBIE
2017-09-27 14:22:01 -04:00
Matthew Chen eec0efa3c8 Fix class rename.
// FREEBIE
2017-09-27 14:22:01 -04:00
Matthew Chen 874ebf7038 Use private queues in message decrypter and batch processor.
// FREEBIE
2017-09-21 17:06:08 -04:00
Matthew Chen 2b0b49b7f6 Don't batch message decryption.
// FREEBIE
2017-09-21 17:06:08 -04:00
Matthew Chen b28c4b74b2 Pull out TSMessageDecrypter class.
// FREEBIE
2017-09-21 14:38:30 -04:00
Matthew Chen 993df25f3f Respond to CR.
// FREEBIE
2017-09-20 11:48:37 -04:00
Matthew Chen e39b9169b9 Decrypt and process messages in batches.
// FREEBIE
2017-09-20 10:56:04 -04:00
Matthew Chen 9987ebb3c0 Decrypt and process messages in batches.
// FREEBIE
2017-09-20 10:56:04 -04:00
Matthew Chen 023c804a61 Decrypt and process messages in batches.
// FREEBIE
2017-09-20 10:56:04 -04:00
Matthew Chen 6fce2c26b7 Process messages in a single transaction (wherever possible).
// FREEBIE
2017-09-20 09:40:46 -04:00
Matthew Chen afc753e7ed Add batch message processor.
// FREEBIE
2017-09-20 09:24:49 -04:00
Matthew Chen c498e4b354 Decouple message decryption and processing.
// FREEBIE
2017-09-20 09:24:49 -04:00
Michael Kirk bde40a1f9c Ensure avatar upates right after profile change.
// FREEBIE
2017-08-25 12:40:19 -04:00
Michael Kirk a196693425 Make sure DB views are ready before kicking processing job
// FREEBIE
2017-07-28 17:12:47 -04:00
Michael Kirk 0b38b46683 remove unnecessary dispatch
// FREEBIE
2017-07-28 17:12:47 -04:00
Michael Kirk 6a5c6a9fc9 didBecomeActive kicks the processing queue
// FREEBIE
2017-07-28 17:12:47 -04:00
Michael Kirk 1066089980 Fix thread explosion
Without this, when the user has a large message queue to process, things
slow to a crawl as we spew more and more threads. Since it's on a serial
queue anyway, there's no need to have multiple threads executing this
code.

// FREEBIE
2017-07-28 17:12:47 -04:00
Matthew Chen f1807cd709 Add script to extract and gather analytics event names.
// FREEBIE
2017-07-27 12:29:05 -04:00
Michael Kirk 91ad2ec32b Properly handle too-large messages
1. Take note of any large messages.
2. If they are way too large, we just drop them on the floor.

// FREEBIE
2017-07-27 11:37:10 -04:00
Michael Kirk eafc370bbe CR: move property to method to clearly avoid Mantle serialization
Also some formatting cleanup and extra asserts

// FREEBIE
2017-07-26 14:29:56 -04:00
Michael Kirk 4d8429186d Store undecrypted envelopes before doing any processing.
This lets us clear the server side queue immediately, and paves the way
for retry, give up logic.

// FREEBIE
2017-07-26 14:29:56 -04:00