Commit Graph

311 Commits

Author SHA1 Message Date
Michelle Linington
12e8d3b675 PR Feedback: Consolidate write transactions 2021-07-21 22:58:51 -07:00
Michelle Linington
c4bbcc0243 Sender key rotation and expiration 2021-07-21 22:58:51 -07:00
Matthew Chen
3f07db9e37 Clean up async completions. 2021-07-07 09:49:44 -03:00
Matthew Chen
580bc95230 Respond to CR. 2021-07-02 22:17:24 -03:00
Matthew Chen
f2b76e60f9 Refine names. 2021-07-02 22:08:53 -03:00
Matthew Chen
f06b72bc2a Remove uiRead(). 2021-07-02 22:04:58 -03:00
Matthew Chen
75de56236b Remove uiRead(). 2021-07-02 22:04:58 -03:00
Matthew Chen
37052a302a Fix build warnings around imports. 2021-06-07 11:11:30 -04:00
Nora Trapp
12d67d25da Use vanilla push for preauth challenge 2021-06-03 08:38:29 -07:00
Nora Trapp
5227fd64dc Don't set voip token on service if using NSE 2021-06-03 08:38:29 -07:00
Matthew Chen
9645ac0b51 Respond to CR. 2021-05-25 17:50:23 -03:00
Matthew Chen
1e2bb14aba Refine re-registration/re-linking logic. 2021-05-25 17:41:57 -03:00
Matthew Chen
50c3b2fa7b Allow user to reset device data when re-linking to a new primary with a different phone number or uuid. 2021-05-25 17:41:56 -03:00
Matthew Chen
66a617b5a4 Reset payments if necessary. 2021-05-25 17:40:48 -03:00
Matthew Chen
02fbe33779 Payments: SSK Business Logic 2021-04-06 13:57:06 -03:00
Matthew Chen
86b8eb08b8 Remove YapDatabase.
Apply asset from design.

Fix rebase breakage.
2021-03-25 11:41:16 -03:00
Matthew Chen
d0cbf8cfd0 Rework dependency access. 2021-03-25 09:24:27 -03:00
Jordan Rose
68a27a76e2 Move AxolotlKit model classes into SSK and remove the dependency
We still need the AxolotlKit model classes to migrate old sessions,
but we don't need any of the actual protocol support. This also
means we can drop HKDFKit.

Additionally, we do still use some utilities from AxolotlKit:

- AxolotlExceptions.h: NSException names, should eventually be
  replaced by NSErrors everywhere

- NSData+keyVersionByte.h: prepend/remove public key type byte,
  should eventually be replaced by strong types (ECPublicKey)

- SPKProtocolContext.h: defines the SPKProtocol{Read,Write}Context
  marker protocols, should be replaced by direct use of
  SDSAny{Read,Write}Transaction
2021-03-22 16:17:47 -07:00
Matthew Chen
6f737748e9 Avoid profile key conflicts. 2021-03-12 17:05:02 -08:00
Nora Trapp
4743cf9af3 PR Feedback 2021-03-12 16:59:56 -08:00
Nora Trapp
ec1a1bb9ae Simplify MessageProcessing promises 2021-02-23 10:45:50 -08:00
Matthew Chen
cce7a14e0c Rework app readiness. 2021-02-04 09:55:39 -03:00
Matthew Chen
645bd76bd5 Rework app readiness. 2021-02-04 09:55:39 -03:00
Jordan Rose
c7b6ba7010 Make OWSAccountIdFinder's methods into class methods
OWSAccountIdFinder is no longer used for dependency injection in
SignalMetadataKit, so there's no need to allocate empty NSObjects just
to call the methods.

No functionality change.
2021-01-28 12:03:50 -08:00
Jordan Rose
05725078f1 SSK: Migrate SSKSessionStore to Swift
This is a no-change migration /except/ that I've dropped entry points
that are unused in the app or tests.
2021-01-28 12:03:50 -08:00
Matthew Chen
d7ffe46168 Merge branch 'release/5.1.0' 2020-12-23 14:33:36 -03:00
Nora Trapp
b6cb720ffe Keep signed prekeys for 30 days 2020-12-22 12:37:59 -08:00
Nora Trapp
a0992b9857 Eliminate usage of unsaved SignalRecipients 2020-12-18 19:15:07 -08:00
Matthew Chen
20a0fddb90 Add debug UI around prekeys and sessions. 2020-10-16 10:46:37 -03:00
Matthew Chen
2beeb38e23 Merge remote-tracking branch 'private/release/3.19.0' 2020-10-08 17:51:35 -03:00
Matthew Chen
b13ff0c879 Respond to CR. 2020-10-08 17:31:29 -03:00
Matthew Chen
6fbe046001 Block prekey handling until message processing is complete. 2020-10-08 11:48:07 -03:00
Matthew Chen
8e95a8547b Elaborate logging around signed prekey clean up. 2020-10-08 11:16:50 -03:00
Matthew Chen
c017e76aab Rename singleton accessors. 2020-09-17 21:11:09 -03:00
Matthew Chen
ad6bda8a44 Rename singleton accessors. 2020-09-17 21:11:07 -03:00
Matthew Chen
34edebd669 Tweak capabilities for gv2. 2020-09-14 15:13:50 -03:00
Matthew Chen
452499a716 Add group invite link action sheet. 2020-09-01 17:25:04 -03:00
Nora Trapp
976dcfe7c8 Invert storage service discoverability flag 2020-08-28 09:23:32 -07:00
Nora Trapp
15f3e3bb10 Add settings for phone number sharing and discoverability 2020-08-28 09:23:32 -07:00
Nora Trapp
f968d6a12a Storage service support for phone number sharing and discoverability 2020-08-26 16:29:29 -07:00
Nora Trapp
0fce3aec2c Add initial handling of 'phone number discoverability' setting 2020-08-26 16:29:29 -07:00
Matthew Chen
dcc0dadee9 Don't block key creation on message process if not yet registered. 2020-08-26 11:19:00 -03:00
Matthew Chen
b9dad89b5a Block prekey operations on message fetching and decryption. 2020-08-25 21:31:56 -03:00
Matthew Chen
44dab37a84 Block prekey operations on message fetching and decryption. 2020-08-25 21:31:56 -03:00
Matthew Chen
4c6f2c22b4 Use protocol contexts in prekey stores. 2020-08-25 21:31:56 -03:00
Nora Trapp
5bbe119398 Add support for UUID only sender certificate 2020-08-25 17:09:59 -07:00
Michelle Linington
18ce525c2e Add some tests to exercise date parsing
Date+SSKTest has a suite of tests that checks parsing of HTTP and
IOS8601 dates directly

NSURLSessionDataTask+OWS_HTTPTest validates that the Retry-After parsing
of NSHTTPURLResponse works as expected

Also, this change renames the NSURLSessionDataTask extension header to
something more generally appropriate
2020-08-13 14:40:22 -07:00
Matthew Chen
fdd3c513ca Rework Groups v2 & CDS feature flags. 2020-08-11 17:45:04 -03:00
Nora Trapp
9177be9828 Update the SignalServiceAddressCache when the local address changes 2020-08-04 19:56:21 -07:00
Matthew Chen
c87b32619d Update account attributes after changes to long form of app version. 2020-07-27 09:42:41 -03:00