Commit Graph

297 Commits

Author SHA1 Message Date
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
Matthew Chen
02e812deef Tweak readiness checking. 2020-07-08 15:02:14 -03:00
Nora Trapp
11e1cd32e0 Cleanup UUID todo 2020-06-25 19:04:12 -03:00
Matthew Chen
3cedd3ccdf Overhaul database observation. 2020-06-18 09:28:49 -03:00
Matthew Chen
577b0acf20 Merge remote-tracking branch 'private/release/3.10.6' into release/3.11.0 2020-06-11 15:33:09 -03:00
Matthew Chen
2db969c19d Clean up prekey updates. 2020-06-11 13:49:59 -03:00
Matthew Chen
d8c92a0446 Clean up prekey updates. 2020-06-11 13:49:59 -03:00
Matthew Chen
23a322bfca Move writes off of main thread. 2020-06-07 15:02:24 -03:00
Matthew Chen
ba801f05ce Label the "slow write transactions" logging with the source of the transaction. 2020-06-07 10:37:55 -03:00
Matthew Chen
32df850dda Revert "Feature flags for internal."
This reverts commit 229de8f5bb.
2020-06-06 17:29:14 -03:00
Matthew Chen
229de8f5bb Feature flags for internal. 2020-06-05 16:37:52 -03:00
Nora Trapp
f21d5a714f Feature flags for production 2020-06-03 14:44:46 -07:00
Nora Trapp
6428e0cf06 Feature flags for internal
This reverts commit 1580ad7951.
2020-06-01 13:34:30 -07:00
Nora Trapp
c9a525a685 Feature flags for beta 2020-06-01 13:34:16 -07:00
Nora Trapp
17f28192f0 Feature flags for internal
This reverts commit 1580ad7951.
2020-06-01 13:25:58 -07:00