Commit Graph

204 Commits (0bdffd60b7ae7e40dbee3485f57c7f9a2772d5b1)

Author SHA1 Message Date
Niels Andriesse 9d64b76af6 Clean & fix bad merge 7 years ago
Mikunj 520d41565f Disable networking calls when updating profile.
Remove avatar from profile controller.
7 years ago
Michael Kirk 1fae83a777 respect any CDN headers (eg Host for front) 7 years ago
Matthew Chen 3ce3f9faaa Add accessibilityIdentifiers to conversation settings view. 7 years ago
Matthew Chen a7ae79aaad Ignore keyboard notifications while the view is disappearing or has disappeared. 7 years ago
Matthew Chen 882dd16d7c Apply presentAlert() throughout codebase. 7 years ago
Matthew Chen 6b5952abda Move work off main thread. 7 years ago
Michael Kirk df79fc9ed0 Move String+OWS into SSK
name Switcharoo String+OWS/String+SSK categories to reflect where they live.
7 years ago
Michael Kirk 5671fd2520 Revert "Revert 'new sort id'."
This reverts commit ebae75af00.
7 years ago
Matthew Chen d717ee5411 Parse and apply profile fetches off main thread. 7 years ago
Michael Kirk b7ab036c04 warn_unused_result on AnyPromise methods 7 years ago
Matthew Chen 48bd0cfa06 Add missing retains to promises. 7 years ago
Matthew Chen d70aa4418f Merge branch 'release/2.32.0' 7 years ago
Matthew Chen 894fd1379c Fix spurious assert. 7 years ago
Matthew Chen aa4fea64cf Improve Profiles Debug UI. 7 years ago
Matthew Chen d6ca969c62 Backup local profile. 7 years ago
Michael Kirk 128bb9be8c Merge tag '2.32.0.17' 7 years ago
Matthew Chen c5744321ba Backup misc collections. 7 years ago
Matthew Chen 8110e0c765 Clean up usage of TSAccountManager. 7 years ago
Matthew Chen 3edf3ed199 Don't use UD for "self" profile fetches. 7 years ago
Matthew Chen 2bad0c20b6 Only fetch profiles in the main app. 7 years ago
Michael Kirk 3faa700d66 Merge tag '2.31.0.31' into release/2.32.0 7 years ago
Matthew Chen 49c8e6db7d Merge remote-tracking branch 'origin/release/2.31.0' 7 years ago
Michael Kirk ae63e399b2 use new key to verify local profile 7 years ago
Michael Kirk 5ed123d863 Fix overzealous profile key rotation 7 years ago
Michael Kirk 0aca0c15c1 specify recipient when profile download fails 7 years ago
Michael Kirk 209e79ce34 Don't add blocked contact to your profile whitelist 7 years ago
Michael Kirk 2bd3e5ef23 cast to same integer signedness for comparison 7 years ago
Matthew Chen eb2e16872e Distinguish 'app will/did become ready' events. 7 years ago
Matthew Chen b90fee08bd Merge remote-tracking branch 'origin/release/2.31.0' 7 years ago
Matthew Chen ac051fc89e Inform linked devices about profile changes. 7 years ago
Matthew Chen 40aa78e001 Merge remote-tracking branch 'origin/release/2.31.0' 7 years ago
Matthew Chen 698e48f2d8 Respond to security review. 7 years ago
Matthew Chen c5f4711595 Apply refinements to UD logic. 7 years ago
Matthew Chen 2541be1619 Apply refinements to UD logic. 7 years ago
Michael Kirk 68353631d4 copy avatar file when rotating, since updating avatarURL entails removing the underlying file 7 years ago
Matthew Chen 737f64b761 Improve UD logging. 7 years ago
Matthew Chen 3f10ce7408 Tweak profile fetch auth behavior in unknown mode case. 7 years ago
Matthew Chen 36f39d9a30 Remove SSKUnidentifiedAccess. 7 years ago
Matthew Chen 7de289f6be Remove SSKUnidentifiedAccess. 7 years ago
Matthew Chen 5d18497ade Try random UD access keys in profile gets. 7 years ago
Matthew Chen dbe635f721 Try random UD access keys in profile gets. 7 years ago
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
7 years ago
Matthew Chen b338863663 Always disable UD for users without verifier. 7 years ago
Matthew Chen d656ae1017 Fix edge cases around UD v. linked devices. 7 years ago
Matthew Chen 64aa43edb1 Only enable UD if UD is supported by all linked devices. 7 years ago
Matthew Chen 9c161e913d Respond to CR; handle device changes in SignalRecipient as well. 7 years ago
Matthew Chen 553d1ac3bc Respond to CR. 7 years ago
Matthew Chen 2894db0d6e Add request maker. 7 years ago
Matthew Chen 99d0495ec7 Respond to CR. 7 years ago
Matthew Chen 5809d026d9 Clean up ahead of PR. 7 years ago
Matthew Chen bbcbbafaab Sync local profile key after rotating it. 7 years ago
Matthew Chen 693b3e13a9 Revert "Sync local profile key after rotating it."
This reverts commit ddbd20e706.
7 years ago
Matthew Chen ddbd20e706 Sync local profile key after rotating it. 7 years ago
Matthew Chen 6d075747c0 Update local profile after registration and profile key rotation. 7 years ago
Matthew Chen 9322442881 Don't assume all linked devices support UD. 7 years ago
Matthew Chen 2f4094e801 Fix UD auth edge cases. 7 years ago
Matthew Chen 4d89670f19 Fix UD auth edge cases. 7 years ago
Michael Kirk d6a6024f37 Update PromiseKit 7 years ago
Michael Kirk c425aa9493 dont rotate profile keys for unregistered user 7 years ago
Matthew Chen c9922cda3e Respond to CR. 7 years ago
Matthew Chen 8fdf6009f9 Sync contacts after rotating profile key. 7 years ago
Matthew Chen eb7abdfc64 Account attributes updates. 7 years ago
Matthew Chen f1d93d4472 Merge remote-tracking branch 'origin/release/2.30.2' 7 years ago
Matthew Chen 794914353d Respond to CR. 7 years ago
Matthew Chen f00f608833 Respond to CR. 7 years ago
Matthew Chen f7827cda7b Respond to CR. 7 years ago
Matthew Chen 0ce2e4d4d9 Rotate profile key if blocklist intersects profile whitelist. 7 years ago
Matthew Chen c907721a18 Rotate profile key if blocklist intersects profile whitelist. 7 years ago
Michael Kirk fb2abdcd1a UD auth for profile fetching
Converging with Android, use UnidentifiedAccess getter
7 years ago
Michael Kirk 0be1f8cca2 Move UD auth into request initializers 7 years ago
Michael Kirk 39ba413439 Track UD mode enum instead of two booleans 7 years ago
Matthew Chen d9c8a218bc Use local profile data for the local phone number. 7 years ago
Matthew Chen 01f63792f8 Respond to CR. 7 years ago
Matthew Chen 7cb0158331 Apply UD access verifier. 7 years ago
Matthew Chen 3b06434d4f Split out second web socket. 7 years ago
Matthew Chen a697072271 Respond to CR. 7 years ago
Matthew Chen ccb67f49a3 Fix issues in UD send & receive. 7 years ago
Matthew Chen 0b41e5e240 Rework profile fetch to reflect UD changes. 7 years ago
Michael Kirk f243914fe5 NSTemporaryDirectory -> OWSTemporaryDirectory/AccessibleAfterFirstAuth
Remove redundant move - AFNetworking alread moves the CFNetwork tmp file for
us.
7 years ago
Matthew Chen 3738155c81 Fix build breakage from SMK. 7 years ago
Matthew Chen 0125535d4d Pull out SignalCoreKit. 7 years ago
Matthew Chen ebae75af00 Revert 'new sort id'. 7 years ago
Michael Kirk df61316495 minimize diff senderTimestamp -> timestamp 7 years ago
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.
7 years ago
Matthew Chen e1db60c1c0 Rework creation of singletons. 7 years ago
Matthew Chen 3fe7d7f9be Remove more usage of logTag. 7 years ago
Matthew Chen 3a12446be8 Modify environment accessors to use our 'shared' convention. 7 years ago
Matthew Chen bd05cdc031 Rename TextSecureKitEnv to SSKEnvironment. 7 years ago
Michael Kirk c7662b5a86 Step 2/2 %s/OWSAssert/OWSAssertDebug for existing previous assert semantics
Going forward, we want to prefer safer asserts, but we don't want to blindly
apply crashing asserts across the codebase
7 years ago
Matthew Chen f473f60111 Apply OWS log functions in Objective-C. 7 years ago
Matthew Chen cc5a480baa Apply OWS log functions in Objective-C. 7 years ago
Matthew Chen c0d486b1f1 Apply OWS log functions in Objective-C. 7 years ago
Matthew Chen 3a50377902 Apply OWS log functions in Objective-C. 7 years ago
Matthew Chen 713606271c Rename fail macros in Obj-C. 7 years ago
Matthew Chen 5b50e81b4f Rename fail macros in Swift. 7 years ago
Matthew Chen cf6f3841a8 Apply new Swift logging. 7 years ago
Michael Kirk 82e559d11b Use swift macros for main thread assert 7 years ago
Matthew Chen 26001e49d1 Unify log tags. 7 years ago
Michael Kirk c05700fd98 Log in OWSFail
step 1: rename OWSFail->OWSFailNoProdLog
step 2: rename OWSProdLogAndFail->OWSFail
step 3: Convert OWSFailNoProdLog->OWSFail where we want logging
step 4: Rename OWSCFail->OWSCFailNoProdLog
step 5: Rename OWSProdLogAndCFail -> OWSCFail
step 6: Convert OWSCFailNoProdLog -> OWSCFail where we want logging
7 years ago