Commit Graph

16 Commits

Author SHA1 Message Date
Max Radermacher
d6aaa92ca3
Add DBWriteTransaction.addSyncCompletion 2024-04-23 15:49:03 -05:00
Sasha Weiss
95cf7fa1b2
Make async{Read,Write} blocks return a generic 2024-02-14 16:25:15 -08:00
Harry
ed048b0eb5
Backup/Restore pinned thread ordering 2024-01-04 05:58:35 -08:00
Max Radermacher
7d94cf95e3
Remove 6 redundant methods from protocol DB 2023-10-31 00:44:09 -05:00
Harry
da921de7af
[Death to TSAccountManager, long live TSAccountManager][8] Final cleanup before callsites can be migrated 2023-09-29 12:19:26 -07:00
Max Radermacher
c4bfaf7867
Add awaitableWrite database method 2023-09-25 13:43:24 -05:00
Sasha Weiss
c39af86c22
Catch retained transactions in MockDB 2023-08-30 12:39:26 -07:00
Sasha Weiss
e727ae5356
Unlink a linked device if we get a PNI decryption error and keys are mismatched 2023-08-25 15:25:19 -07:00
Max Radermacher
0038125cdf
Use the rethrows pattern for db read/write 2023-08-18 13:33:03 -05:00
Pete Walters
9d27c3f341
Implement SSKKyberPreKeyStore operations 2023-08-02 16:53:29 -05:00
Pete Walters
d238cb1445
Update Scheduler to handle protocol additions 2023-07-20 18:10:21 -05:00
Max Radermacher
a091255898 Remove unnecessary escaping annotation 2023-07-17 18:35:32 -05:00
Harry
5ad17c4f2d
Support change number in registration coordinator
* Factor out RegistrationCoordinatorLoader

* Add PNI change number state to regcoordinatorloader

* Don't exit change number flow once we start a pni operation

* Add ChangePhoneNumberPniManager to reg coordinator dependencies

* add params required for pni to change number registration mode

* change number from regcoordinator

* rename ChangePhoneNumber -> LegacyChangePhoneNumber

* remove pni change number support from LegacyChangePhoneNumber

* remove codable conformance from pni change number manager's pending state

* Update ts account manager state when finalizing change number

* Add message processor deps to reg coordinator

* addAsyncCompletion on dbv2 write transactions

* Suspend message processing while doing a reg coordinator change number

* hook up change number

* Add handler-free message processing suspension method

* odds and ends

* minor cleanup

* slight refactor to finalize change phone number in the export function

* Put wait for message processing + suspend onto messageProcessor

* kick of prekey refresh after pni change number finalize transaction ends

* nit
2023-03-17 17:55:06 -07:00
Sasha Weiss
81b6201a03
Rename KeyValueStoreProtocol -> KeyValueStore 2023-03-14 13:26:06 -07:00
Harry
feeabc2ba8
Catch re-entrant MockDBv2 transactions in tests
* Catch re-entrant MockDBv2 transactions in tests

* Fix some promise + transaction issues in RegCoordinator

* undo dumdum changes; dont handle errors on a guarantee
2023-03-10 15:03:27 -08:00
Harry
3d6225060d
Add RegistrationCoordinator
* Add ability to compute registration recovery password

* Add RegistrationCoordinator

* remove repeat nav controller that evan added

* Scaffolding for RegistrationCoodinator test

* Add first round of RegistrationCoordinator tests, some stuff I needed to get them working, and some fixes to RegistrationCoordinator itself I discovered thanks to the tests

* switch to owsFailBeta

* Add auth credential candidate flow tests, related fixes and additions to coordinator and friends

* Add tests for session based registration path and associated fixes

* PR comment nits
2023-02-14 08:50:24 -08:00