Commit graph

4254 commits

Author SHA1 Message Date
Matthew Chen 874ebf7038 Use private queues in message decrypter and batch processor.
// FREEBIE
2017-09-21 17:06:08 -04:00
Matthew Chen 077b74a0aa Fix handling of edge cases around groups.
// 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 bfb03c0db4 Fix message processing edge cases.
// FREEBIE
2017-09-21 17:06:08 -04:00
Matthew Chen d5ff2cae60 Merge branch 'charlesmchen/asyncNotifications' 2017-09-21 17:04:59 -04:00
Matthew Chen 445f6dc6f8 Respond to CR.
// FREEBIE
2017-09-21 17:03:57 -04:00
Matthew Chen 35a2470cb7 Post notifications asynchronously.
// FREEBIE
2017-09-21 17:03:57 -04:00
Matthew Chen 1382270c66 Merge branch 'charlesmchen/readReceiptsManager' 2017-09-21 16:58:34 -04:00
Matthew Chen 1c8dbcd223 Respond to CR.
// FREEBIE
2017-09-21 16:58:07 -04:00
Matthew Chen 3eaeb4e0ec Add read receipts manager.
* Simplify read receipts plumbing.
* Rework incoming read receipts handling.
* Rework outgoing read receipts handling.
* Make "database view registration complete" check thread-safe.
* Don't send sync messages to self if no linked devices.

// FREEBIE
2017-09-21 16:23:03 -04:00
Matthew Chen 2cfa24ba7b Respond to CR.
// FREEBIE
2017-09-21 14:42:05 -04:00
Matthew Chen 5a843e7147 Merge branch 'charlesmchen/refactorMessageProcessing' 2017-09-21 14:41:23 -04:00
Matthew Chen b28c4b74b2 Pull out TSMessageDecrypter class.
// FREEBIE
2017-09-21 14:38:30 -04:00
Matthew Chen 46c4f4e445 Merge branch 'charlesmchen/precommitIncludesAndClasses' 2017-09-20 15:53:12 -04:00
Matthew Chen f1b7d895e2 Modify precommit script to clean up includes and forward declarations.
// FREEBIE
2017-09-20 15:33:17 -04:00
Michael Kirk 83479a505d clarify translations procedure 2017-09-20 13:58:31 -04:00
Michael Kirk 612615a2b3 bump build
// FREEBIE
2017-09-20 13:55:06 -04:00
Michael Kirk cfa99f2530 update l10n
👍 @liliakai

// FREEBIE
2017-09-20 13:54:10 -04:00
Michael Kirk e1c8d38f3e update translations doc 2017-09-20 13:52:11 -04:00
Michael Kirk 6271cbaf52 Merge branch 'mkirk-hotfix-2.16.1/launch-from-notification-crash-fix' into hotfix/2.16.1 2017-09-20 13:43:41 -04:00
Michael Kirk 73bdae3366 Fix 1-time crash when launching 2.16 from notification
didBecomeActive is too late in the case of launching from a
notification.

Also, start tracking when app setup is complete, and prevent certain
actions from occurring in that case. Eventually we'll enqueue these
actions rather than ignoring them, but we'll want to do more testing
before releasing that. In the meanwhile, if the environment isn't setup
at this point, a crash would be eminent anyway.

// FREEBIE
2017-09-20 13:26:32 -04:00
Matthew Chen c4b3683402 Merge branch 'charlesmchen/batchMessageProcessing' 2017-09-20 12:24:29 -04:00
Matthew Chen 993df25f3f Respond to CR.
// FREEBIE
2017-09-20 11:48:37 -04:00
Matthew Chen 46f17a02cb DRY up decryption logic.
// FREEBIE
2017-09-20 10:56:04 -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 fa353259c3 Process messages in a single transaction (wherever possible).
// FREEBIE
2017-09-20 10:56:04 -04:00
Matthew Chen bfb5fac879 Make "database view registration complete" check thread-safe.
// FREEBIE
2017-09-20 10:48:33 -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
Matthew Chen 3abcbdf981 Merge branch 'charlesmchen/databaseViewRegistrationCheckVsConcurrency' 2017-09-20 09:22:53 -04:00
Matthew Chen bfd50a9e0e Make "database view registration complete" check thread-safe.
// FREEBIE
2017-09-20 09:21:05 -04:00
Matthew Chen 3d3f3bb590 Merge branch 'charlesmchen/readReceiptPreferencesCR' 2017-09-20 09:19:48 -04:00
Matthew Chen 8a4d67a6e4 Respond to CR.
// FREEBIE
2017-09-20 09:19:15 -04:00
Matthew Chen 183f0f1ccd Respond to CR.
// FREEBIE
2017-09-19 17:45:18 -04:00
Matthew Chen bd360262cb Merge branch 'charlesmchen/readReceiptPreferences' 2017-09-19 17:36:40 -04:00
Matthew Chen 83c21c6159 Add setting for read receipts in app settings.
// FREEBIE
2017-09-19 17:35:42 -04:00
Matthew Chen 65732af3da New users opt-out of read receipts; legacy users opt-in.
// FREEBIE
2017-09-19 17:35:42 -04:00
Matthew Chen 40d728e022 Add read receipts preference.
// FREEBIE
2017-09-19 17:35:42 -04:00
Matthew Chen 80e5f281c6 Rename app preferences class.
// FREEBIE
2017-09-19 17:35:42 -04:00
Matthew Chen c7fab5b920 Merge branch 'charlesmchen/readReceiptsProtos_' 2017-09-19 17:31:17 -04:00
Matthew Chen 74b2f30523 Revert "Modify read receipt photos to support sending read receipts to both linked devices and senders."
This reverts commit 37e67179c8a8d6ebfdfa124ef0c1229f220ed11d.
2017-09-19 17:30:48 -04:00
Matthew Chen a7546aee63 Modify read receipt photos to support sending read receipts to both linked devices and senders.
// FREEBIE
2017-09-19 17:30:48 -04:00
Matthew Chen 39a961e376 Rework incoming read receipts handling.
// FREEBIE
2017-09-19 17:30:48 -04:00
Matthew Chen 737503549d Rework incoming read receipts handling.
// FREEBIE
2017-09-19 17:30:48 -04:00
Matthew Chen 2b1ea19960 Modify read receipt photos to support sending read receipts to both linked devices and senders.
// FREEBIE
2017-09-19 17:30:48 -04:00
Matthew Chen 0e7eaf7c62 Modify read receipt photos to support sending read receipts to both linked devices and senders.
// FREEBIE
2017-09-19 17:30:48 -04:00
Matthew Chen 3367292ba0 Merge branch 'hotfix/2.16.1' 2017-09-19 17:25:24 -04:00