Commit graph

1300 commits

Author SHA1 Message Date
Matthew Chen b3ad6e27dc Rework conversation message bubble colors; add "conversation colors" class. 2018-09-27 09:07:47 -04:00
Matthew Chen 8db4595bdc Rework group avatars to reflect conversation colors. 2018-09-27 08:55:20 -04:00
Matthew Chen 72562920ed Fix author conversation colors. 2018-09-26 09:19:12 -04:00
Matthew Chen 8910f1f65a Enable conversation colors. 2018-09-25 16:11:37 -04:00
Matthew Chen 98630cca50 Respond to CR; add db utility methods to test base classes. 2018-09-21 09:21:34 -04:00
Matthew Chen 559c496ae5 Clean up. 2018-09-21 09:08:39 -04:00
Matthew Chen 66fc389fba Get SSK tests building and running. 2018-09-21 09:08:39 -04:00
Matthew Chen 87836f506b Move more singletons to SSKEnvironment. 2018-09-21 09:06:48 -04:00
Matthew Chen 39ebdf0921 Log curl command for failed requests in debug builds. 2018-09-20 14:02:35 -04:00
Matthew Chen 15b52db8bf Respond to CR. 2018-09-20 08:55:19 -04:00
Matthew Chen 29bb69032a DRY up the debounce of db extension version increment. 2018-09-20 08:55:19 -04:00
Matthew Chen e8186a7005 Fix rebase breakage. Make environment properties mutable in tests. 2018-09-19 16:30:03 -04:00
Matthew Chen 3b2c5bfc7b Modify mock environments to register all db views. 2018-09-19 16:29:15 -04:00
Matthew Chen 83e6484156 Respond to CR. Rework how OWSUploadOperation's networkManager property. 2018-09-19 16:28:03 -04:00
Matthew Chen edcedd2845 Remove selfRecipient method. 2018-09-19 15:11:26 -04:00
Matthew Chen e1db60c1c0 Rework creation of singletons. 2018-09-19 15:11:26 -04:00
Matthew Chen 4ad7ca79b7 Respond to CR. 2018-09-18 16:44:33 -04:00
Matthew Chen e8eac9f30b Clean up ahead of PR. 2018-09-18 16:35:13 -04:00
Matthew Chen b883209f91 Refine logging. 2018-09-18 16:35:12 -04:00
Matthew Chen 69290f7ec8 Improve logging around failied keychain deletion. 2018-09-18 09:07:54 -04:00
Matt Rubin d25579e478 Treat failure to delete a non-existent password as success
Fixes https://github.com/signalapp/Signal-iOS/issues/3876
2018-09-18 09:05:43 -04:00
Michael Kirk e1f131f09c restore save after marking item as uploaded
This was lost in an earlier fixup commit - markAsAccepted mutates but does not
persist anything since SPK doesn't know about YapDB
2018-09-17 10:10:32 -06:00
Michael Kirk cb55ba57f5 CR: rename classes, no functional changes 2018-09-17 10:10:32 -06:00
Michael Kirk 9f35b93647 CR: clarify comment 2018-09-17 10:10:32 -06:00
Michael Kirk 9bca1c8e52 Add some missing nullability annotations 2018-09-17 10:10:32 -06:00
Michael Kirk b3d3c27f39 CR: Split operations into separate files (no changes in functionality) 2018-09-17 10:10:32 -06:00
Michael Kirk ff3e9bcdd1 cr: add comment about operation queue 2018-09-17 10:10:32 -06:00
Michael Kirk bfd8eb63c6 Add some comments/nullability annotations for clarity 2018-09-17 10:10:32 -06:00
Michael Kirk c9218b59ca CR: add operation queue name 2018-09-17 10:10:32 -06:00
Michael Kirk 5a7d7634bf store keys before uploading to avoid race condition with service 2018-09-17 10:10:32 -06:00
Michael Kirk 1853e79c3e Don't retry send until SPK has been rotated
// FREEBIE
2018-09-17 10:10:32 -06:00
Michael Kirk 5e1306aaa5 Restore check debounce 2018-09-17 10:10:32 -06:00
Michael Kirk 8e488b5c3b remove unused code 2018-09-17 10:10:32 -06:00
Michael Kirk 85d35b52d6 restore PreKey upload failure tracking 2018-09-17 10:10:32 -06:00
Michael Kirk 39b691b697 Fix operations not being de-alloced 2018-09-17 10:10:32 -06:00
Michael Kirk 619597cd61 ensure operations run to completion on the PreKey operation queue 2018-09-17 10:10:32 -06:00
Michael Kirk 3df0e72eda Extract SPK rotation and CreatePreKey operations 2018-09-17 10:10:32 -06:00
Michael Kirk 286d3c8ce9 Serialize RefreshKeyOperation
TODO

-[] rotate signed prekey job
-[] verify current prekey w/ server
-[] create keys
2018-09-17 10:10:32 -06:00
Michael Kirk 01811a4891 fix swift method signature 2018-09-17 10:10:32 -06:00
Michael Kirk b11bd6ea46 extract convenience intitializer for param parser 2018-09-17 10:10:32 -06:00
Michael Kirk 1eb05c1d01 remove unused preKeyLastResort 2018-09-17 10:10:32 -06:00
Michael Kirk 920a82564f Merge tag '2.29.3.3' 2018-09-15 09:17:08 -05:00
Matthew Chen 22afe39cd0 Respond to CR. 2018-09-14 14:34:50 -04:00
Matthew Chen 2ea751bbac Clean up attachment downloads. 2018-09-14 14:34:50 -04:00
Matthew Chen 32f1ce9473 Clean up attachment downloads. 2018-09-14 14:34:50 -04:00
Matthew Chen b00858921d Update Cocoapods. 2018-09-14 14:32:28 -04:00
Matthew Chen 9b94580dae Update assertions.
* Streamline precompiled headers.
* Remove obsolete assertions in Constraints.h.
2018-09-14 14:30:06 -04:00
Matthew Chen e15b8ebe16 Add names to operation queues. 2018-09-14 14:24:37 -04:00
Matthew Chen 62c55c9cfb Fix broken tests. 2018-09-14 14:20:39 -04:00
Matthew Chen 2ba642c9e9 Ensure fakes/mocks are debug-only. 2018-09-14 14:18:39 -04:00