Signal-iOS/SignalServiceKit/src/TestUtils
Jordan Rose 5ecb9519b9 Refresh PNI pre-keys along with ACI pre-keys
Pre-keys are refreshed at regular (throttled) intervals, but the
"refresh" operation will only actually upload new pre-keys if the
server says we're running low. In addition, after the "refresh",
there's a "rotation" operation for the signed pre-key if the current
one is more than two days old. This only runs if the refresh was
skipped, since uploading new one-time pre-keys is already an
opportunity to rotate the signed pre-key (and it's worth doing so,
since pre-keys running low can indicate high traffic).

None of this has changed. However, we can now do this for both ACI and
PNI pre-keys. This reworked +[TSPreKeyManager
checkPreKeysWithShouldThrottle:] quite a bit to declare the proper
operation dependencies, which isn't *strictly* necessary because the
queue they're executed on is already limited to a
maxConcurrentOperationCount of 1. We could remove that at this point
with proper use of "barrier" operations, but since all the operations
are hitting the server and account updates have to be serialized on
*that* end, there doesn't seem to be much of a benefit.
2022-04-07 14:06:27 -07:00
..
Factories.swift Add support for incoming reaction story replies 2022-03-31 00:34:33 -07:00
FakeAccountServiceClient.swift Refresh PNI pre-keys along with ACI pre-keys 2022-04-07 14:06:27 -07:00
FakeContactsManager.swift Introduce Refinery to help batch DB queries. 2022-03-04 10:44:07 -08:00
FakeStorageServiceManager.swift Convert to new Promise library 2021-09-03 11:41:34 -07:00
MockSSKEnvironment.h Fetch phone numbers in a batch. 2022-03-17 12:46:33 -07:00
MockSSKEnvironment.m Fetch phone numbers in a batch. 2022-03-17 12:46:33 -07:00
MockSubscriptionManager.swift Don't show subscription megaphone again until your subscription has been expired for at least 2 weeks 2022-02-11 13:09:20 -08:00
NoopNotificationsManager.swift Elaborate logging around missing notifications. 2021-09-02 22:51:26 -03:00
NoopPendingReadReceiptRecorder.swift Add support for viewed receipts 2021-04-29 18:01:18 -07:00
OWSFakeCallMessageHandler.h Respond to CR. 2021-10-21 09:21:31 -03:00
OWSFakeCallMessageHandler.m Lint 2022-03-04 14:16:29 -08:00
OWSFakeMessageSender.h Respond to CR. 2021-10-21 09:21:31 -03:00
OWSFakeMessageSender.m Apply script to normalize includes and imports. 2021-10-21 09:21:10 -03:00
OWSFakeProfileManager.h Check if a user is stories capable when sending group replies 2022-03-31 00:37:56 -07:00
OWSFakeProfileManager.m Check if a user is stories capable when sending group replies 2022-03-31 00:37:56 -07:00
OWSMockSyncManager.swift Generate PNI identity key and pre-keys for existing accounts 2022-04-04 15:19:10 -07:00
TestAppContext.h Respond to CR. 2021-10-21 09:21:31 -03:00
TestAppContext.m Do not use -[UIApplication setStatusBarHidden:animated:]. 2022-01-31 15:15:18 -08:00
TestKeychainStorage.swift Fix a couple test breakages 2021-06-02 19:03:25 -07:00
TestProtocolRunner.swift Update to LibSignalClient v0.15.0 2022-03-24 11:55:45 -07:00