Commit graph

1563 commits

Author SHA1 Message Date
Matthew Chen d44e414b54 Clean up message sender. 2018-10-18 13:50:48 -04:00
Matthew Chen 6d075747c0 Update local profile after registration and profile key rotation. 2018-10-18 12:26:13 -04:00
Matthew Chen 9322442881 Don't assume all linked devices support UD. 2018-10-18 12:26:13 -04:00
Matthew Chen 353f91db64 Respond to CR. 2018-10-18 12:12:13 -04:00
Matthew Chen 9519e7961a Rework recipient device updates. 2018-10-18 11:21:16 -04:00
Matthew Chen a00ebdf4a2 Fix UD auth edge cases. 2018-10-18 11:21:16 -04:00
Matthew Chen 2f4094e801 Fix UD auth edge cases. 2018-10-18 11:21:16 -04:00
Matthew Chen 4d89670f19 Fix UD auth edge cases. 2018-10-18 11:21:16 -04:00
Matthew Chen de8b5b55c0 Update production trust root. 2018-10-18 11:05:10 -04:00
Matthew Chen 6d3f62453e Add asserts around group id length. 2018-10-18 10:34:56 -04:00
Matthew Chen 275414cbda Respond to CR. 2018-10-16 17:42:54 -04:00
Matthew Chen 7c1f1882d8 Sync "show UD indicators" setting. 2018-10-16 17:42:54 -04:00
Matthew Chen 43960aadd6 Update proto schema. 2018-10-16 17:42:54 -04:00
Michael Kirk aff35329bd make factory Swift 4.1 compatible 2018-10-16 17:12:13 -04:00
Matthew Chen cccd246122 Revert "Revert Factories."
This reverts commit 7aabb821bd.
2018-10-16 17:09:25 -04:00
Matthew Chen c6ef7f18e7 Improve test logging. 2018-10-16 13:01:24 -04:00
Matthew Chen 79ed05133c Move db connections to environments. 2018-10-16 13:01:11 -04:00
Matthew Chen f1646b6cbc Move db connections to environments. 2018-10-16 13:00:50 -04:00
Matthew Chen 829851bd7b Hang PushManager on AppEnvironment. 2018-10-16 11:47:54 -04:00
Matthew Chen 9d7c3afdaf Show (threadless) error notifications for UD decrypt failures. 2018-10-16 11:00:38 -04:00
Matthew Chen 7aabb821bd Revert Factories. 2018-10-16 10:31:04 -04:00
Michael Kirk d6cbdddc42 Fix test build, rename src/Test/ ->src/TestUtils/ to avoid confusion with the
existing test/ directory
2018-10-15 15:58:54 -06:00
Michael Kirk ac7f9f62d4 factories for tests 2018-10-15 15:20:23 -06:00
Matthew Chen bc4ac8cd15 Respond to CR. 2018-10-15 15:08:00 -04:00
Matthew Chen 53466386fd Get tests running. 2018-10-15 12:59:28 -04:00
Matthew Chen 32cf68bece Get all tests building. 2018-10-15 12:50:07 -04:00
Michael Kirk d6a6024f37 Update PromiseKit 2018-10-13 16:04:20 -06:00
Matthew Chen c9922cda3e Respond to CR. 2018-10-12 17:38:13 -04:00
Matthew Chen eb7abdfc64 Account attributes updates. 2018-10-12 17:19:00 -04:00
Matthew Chen f1d93d4472 Merge remote-tracking branch 'origin/release/2.30.2' 2018-10-12 16:00:42 -04:00
Matthew Chen 5e0bc1bc1e Respond to CR. 2018-10-12 14:08:42 -04:00
Michael Kirk 3e85c8c023 clang-format branch changes 2018-10-12 13:52:46 -04:00
Matthew Chen b53cb9e616 Clean up ahead of PR. 2018-10-12 13:52:46 -04:00
Matthew Chen 5cf8909a28 Modify OWSOutgoingReceiptManager to handle read receipts. 2018-10-12 13:52:46 -04:00
Matthew Chen 010ce1f6c2 Rename to OWSOutgoingReceiptManager. 2018-10-12 13:52:46 -04:00
Matthew Chen 2b45a8348e Clean up ahead of PR. 2018-10-12 13:52:46 -04:00
Matthew Chen f5591ef7b7 Clean up ahead of PR. 2018-10-12 13:52:46 -04:00
Matthew Chen 62d1fd2025 Clean up ahead of PR. 2018-10-12 13:52:46 -04:00
Matthew Chen 45d6250aee Send delivery receipts. 2018-10-12 13:52:46 -04:00
Matthew Chen de7bffa593 Send delivery receipts. 2018-10-12 13:52:46 -04:00
Matthew Chen 13373db3bc Send delivery receipts. 2018-10-12 13:52:46 -04:00
Matthew Chen 9ef0f35d26 Remove obsolete CDS constant. 2018-10-12 13:51:33 -04:00
Matthew Chen c5f52cc0b9 Respond to CR. 2018-10-12 13:49:05 -04:00
Matthew Chen fd9ee4c9f3 Fix small bug. 2018-10-12 13:49:05 -04:00
Matthew Chen 7e7fcc1698 Apply UD status from transcripts. 2018-10-12 13:49:05 -04:00
Matthew Chen 0c6c506a36 Send UD status in sync messages. 2018-10-12 13:49:04 -04:00
Matthew Chen 994e95a644 Update protos. 2018-10-12 13:49:04 -04:00
Michael Kirk 5edf2e426e Only report attestation failure if we *received* the attestion.
per Jeff
2018-10-12 11:06:21 -06:00
Michael Kirk c4550ebc90 don't submit feedback for connectivity errors 2018-10-12 11:06:21 -06:00
Michael Kirk e22ad8ba66 include underlying error in wrapped TSNetworkErrors 2018-10-12 11:06:21 -06:00
Michael Kirk e7170dc6e8 conventional error structure for connectivity error 2018-10-12 11:06:21 -06:00
Matthew Chen f00f608833 Respond to CR. 2018-10-11 13:02:02 -04:00
Matthew Chen f7827cda7b Respond to CR. 2018-10-11 13:02:02 -04:00
Matthew Chen c907721a18 Rotate profile key if blocklist intersects profile whitelist. 2018-10-11 13:02:02 -04:00
Matthew Chen 1f37980a0d Suppress UD against production service to avoid de-registration. 2018-10-11 13:00:53 -04:00
Matthew Chen f2a1df4e99 Update device message auditing to reflect UD behavior. 2018-10-11 13:00:53 -04:00
Matthew Chen 960b4f537d Suppress UD against production service to avoid de-registration. 2018-10-11 13:00:53 -04:00
Matthew Chen 9323e411fc Revert AppReadiness singleton. 2018-10-11 09:42:49 -04:00
Matthew Chen 27700ef78f Revert AppVersion singleton. 2018-10-11 09:36:47 -04:00
Matthew Chen f24ccb3ce6 Hang more singletons on SSKEnv. 2018-10-11 08:56:50 -04:00
Matthew Chen 8bd97aaaa0 Respond to CR. 2018-10-11 08:55:37 -04:00
Matthew Chen 03f23b5f79 Fix breakage in UD manager; add UD manager test, hang TSAccountManager on SSKEnv, fix bugs in tests. 2018-10-11 08:46:24 -04:00
Matthew Chen 1f2bfe8df4 Fix breakage in UD manager. 2018-10-11 08:46:24 -04:00
Matthew Chen bda6fdf44f Respond to CR. 2018-10-10 14:34:14 -04:00
Matthew Chen a6eed30127 Add 'is ud' property to outgoing messages. 2018-10-10 14:32:14 -04:00
Matthew Chen cba8c67983 Add 'is ud' property to incoming messages. 2018-10-10 14:29:40 -04:00
Matthew Chen 0d588346f1 Fix rebase breakage. 2018-10-10 14:28:02 -04:00
Matthew Chen a4cdc5272c Handle UD auth errors in websocket sends. 2018-10-10 14:22:41 -04:00
Michael Kirk a5db222c7a move ud auth to request factory 2018-10-10 11:39:29 -06:00
Michael Kirk fb2abdcd1a UD auth for profile fetching
Converging with Android, use UnidentifiedAccess getter
2018-10-10 09:09:11 -06:00
Michael Kirk 0be1f8cca2 Move UD auth into request initializers 2018-10-10 09:09:11 -06:00
Michael Kirk 39ba413439 Track UD mode enum instead of two booleans 2018-10-10 09:09:11 -06:00
Matthew Chen fab79e2673 Respond to CR. 2018-10-10 09:59:10 -04:00
Matthew Chen 75e59bbc6f Discard self-sent messages during the decryption process. 2018-10-10 09:10:45 -04:00
Matthew Chen e47b69e0aa Send sync messages to self via UD (only); discard self-sent sync messages. 2018-10-10 09:10:45 -04:00
Matthew Chen 7ef39bf258 Clean up proto utils. 2018-10-10 09:10:45 -04:00
Matthew Chen 5e253f1c26 Always include "local user" in contacts sync messages. 2018-10-10 09:10:45 -04:00
Matthew Chen 7cb0158331 Apply UD access verifier. 2018-10-05 13:14:45 -04:00
Matthew Chen 21b383f4e2 Remove server GUID from TSIncomingMessage. 2018-10-05 13:02:35 -04:00
Matthew Chen 7441c565bb Fix missing server timestamps. 2018-10-05 12:56:42 -04:00
Matthew Chen ad56be27c9 Fix missing server timestamps. 2018-10-05 12:56:42 -04:00
Matthew Chen 01ca416f42 Fix rebase breakage. 2018-10-05 12:53:54 -04:00
Matthew Chen 2f2b6b071b UD sends over web sockets; update web socket auth for UD. 2018-10-05 12:49:40 -04:00
Matthew Chen 3b06434d4f Split out second web socket. 2018-10-05 12:48:19 -04:00
Matthew Chen c137e95ae5 Move socket manager to hang on SSKEnvironment. 2018-10-05 12:47:11 -04:00
Matthew Chen fbfda5b9db Respond to CR. 2018-10-05 12:00:31 -04:00
Matthew Chen 1a23186ec4 Fix 'info message for group events'. 2018-10-05 11:50:17 -04:00
Matthew Chen 61a99c3f87 Further sender cleanup. 2018-10-05 11:49:36 -04:00
Matthew Chen f2a9c10c20 Respond to CR. 2018-10-05 10:41:10 -04:00
Matthew Chen a697072271 Respond to CR. 2018-10-05 10:32:32 -04:00
Matthew Chen f9e90215b3 Respond to CR. 2018-10-05 09:28:53 -04:00
Michael Kirk 2b805e4eae Constantize ConversationColorName, map previous incorrect values 2018-10-04 18:21:35 -06:00
Michael Kirk d59e21e7f0 Nothing outside of TSThread should know about legacy colors 2018-10-04 17:07:50 -06:00
Michael Kirk 405cc31a38 Apply new colors to new conversation 2018-10-04 10:34:57 -06:00
Matthew Chen ccb67f49a3 Fix issues in UD send & receive. 2018-10-04 11:56:37 -04:00
Matthew Chen 0b41e5e240 Rework profile fetch to reflect UD changes. 2018-10-04 11:56:37 -04:00
Matthew Chen 1e10a86635 UD send via REST. 2018-10-04 11:56:36 -04:00
Matthew Chen 24b0eed1f6 UD send via REST. 2018-10-04 11:56:36 -04:00
Matthew Chen d08479980d UD send via REST. 2018-10-04 11:56:36 -04:00
Matthew Chen c856859fbd Fix build breakage. 2018-10-04 11:56:21 -04:00
Matthew Chen 1b25a18e57 Respond to CR. 2018-10-04 11:50:22 -04:00
Michael Kirk f243914fe5 NSTemporaryDirectory -> OWSTemporaryDirectory/AccessibleAfterFirstAuth
Remove redundant move - AFNetworking alread moves the CFNetwork tmp file for
us.
2018-10-03 14:01:36 -06:00
Matthew Chen f0b16186cd Respond to CR. 2018-10-03 10:08:45 -04:00
Matthew Chen b8c5e14758 Apply UD trust root value for staging. 2018-10-03 09:34:16 -04:00
Matthew Chen 0c0d2a702e Decrypt incoming UD messages. 2018-10-03 09:32:21 -04:00
Matthew Chen cec8df422e Respond to CR. 2018-10-03 09:30:32 -04:00
Matthew Chen 3eb84ed0e0 Move message processing singletons to SSKEnvironment. 2018-10-03 09:25:29 -04:00
Matthew Chen 580d0486b6 Respond to CR. 2018-10-03 09:15:51 -04:00
Matthew Chen 9f2a15925a Add new envelope properties for UD. 2018-10-03 09:15:32 -04:00
Matthew Chen 4ab281346a Respond to CR. 2018-10-03 09:09:24 -04:00
Matthew Chen 39f1be65f3 Respond to CR. 2018-10-03 08:59:55 -04:00
Matthew Chen 1b1312c455 Clean up ahead of CR. 2018-10-03 08:59:55 -04:00
Matthew Chen 1d40cbfb41 Rework account attributes; persist manual message fetch; add "unrestricted UD" setting. 2018-10-03 08:59:55 -04:00
Michael Kirk 6560358375 Fix failed attachment downloads in beta 2018-10-02 14:38:05 -06:00
Matthew Chen b808c2b33b Respond to CR. 2018-10-02 13:52:44 -04:00
Matthew Chen dca46e019f Respond to CR. 2018-10-02 13:25:42 -04:00
Matthew Chen e98c572158 Sketch out sender certificate validation. 2018-10-02 13:25:17 -04:00
Matthew Chen 45233ec862 Revert UD server certificate parsing. 2018-10-02 13:24:20 -04:00
Matthew Chen f7379deb69 Add setup method to UD manager. Try to verify server certificate expiration. 2018-10-02 13:24:12 -04:00
Matthew Chen 7fd15d2fd9 Add server certificate methods to UD manager. 2018-10-02 13:24:00 -04:00
Matthew Chen b714e528f5 Add UDManager. 2018-10-02 13:23:21 -04:00
Matthew Chen 21177e84db Fix or disable tests broken by recent merges. 2018-10-02 13:19:51 -04:00
Matthew Chen 71da312336 Post-SMK ud changes. 2018-10-02 13:19:41 -04:00
Matthew Chen 2c4c096d93 Fix typo in swift names. 2018-10-02 13:16:46 -04:00
Matthew Chen db487705c3 Fix breakage in the tests. 2018-10-02 12:42:07 -04:00
Michael Kirk 006021ea41 Fix: group color change doesn't immediately apply
Because we were fetching a new thread instance, instead of updating the
existing thread instance, classes which were bound to the old thread instance
weren't updating. This affected the HeaderView.AvatarView.thread and the
ConversationStyle.thread.
2018-10-01 17:06:09 -06:00
Matthew Chen 7d727b7ac9 Modify proto wrapper builders to require required fields. 2018-10-01 09:08:23 -04:00
Matthew Chen 74e456f90e Modify proto wrapper builders to require required fields. 2018-10-01 09:08:23 -04:00
Matthew Chen 04db4ca950 Get SMK tests building and passing. 2018-10-01 09:08:02 -04:00
Matthew Chen 8f5e21c7cf Fix build breakage from SMK. 2018-10-01 09:08:02 -04:00
Matthew Chen 3738155c81 Fix build breakage from SMK. 2018-10-01 09:08:02 -04:00
Matthew Chen 8ae200ac21 Fix build breakage around SignalCoreKit. 2018-10-01 09:07:40 -04:00
Matthew Chen b77528ca0a Fix asserts & logging. 2018-10-01 09:07:40 -04:00
Matthew Chen 0125535d4d Pull out SignalCoreKit. 2018-10-01 09:06:40 -04:00
Matthew Chen ebae75af00 Revert 'new sort id'. 2018-09-27 19:40:51 -04:00
Matthew Chen 3c22d0b0c8 Swift exit(). 2018-09-27 16:56:54 -04:00
Michael Kirk e3e6c31612 fix hang on conversation load 2018-09-27 15:29:00 -04:00
Michael Kirk 79add78d51 Merge branch 'release/2.30.1' 2018-09-27 13:03:35 -06:00
Matthew Chen bb5c9ff106 Respond to CR. 2018-09-27 13:56:07 -04:00
Matthew Chen c0f4254599 Mark CDS feature flag for removal. 2018-09-27 13:56:07 -04:00
Matthew Chen 0884598a3a Fix CDS cookie handling. 2018-09-27 13:56:07 -04:00
Matthew Chen c368aabf9c Fix the "de-register" logic. 2018-09-27 13:56:07 -04:00
Matthew Chen b10bf441c4 Add note about curl cookie support. 2018-09-27 13:56:07 -04:00
Matthew Chen 370c96af53 Enable CDS in contact intersection. 2018-09-27 13:56:07 -04:00
Matthew Chen 43d0b9b9bf Fix misnamed method. 2018-09-27 13:56:07 -04:00
Matthew Chen b6a14ea014 Fix the CDS version checking. 2018-09-27 13:56:07 -04:00
Matthew Chen bcb882f5aa Update CDS URLs. 2018-09-27 13:56:07 -04:00
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
Michael Kirk fe7d69e9c6 Update thread's sorting order based on whatever the currently last message is 2018-09-26 09:52:34 -06:00