Cancel throttled refreshRemoteConfig on link

This commit is contained in:
Fedor Indutny 2022-08-10 16:38:52 -07:00 committed by GitHub
parent 211e1f697b
commit 32237d7008
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1834,6 +1834,10 @@ export async function startApp(): Promise<void> {
server.authenticate(
window.textsecure.storage.user.getWebAPICredentials()
);
// Cancel throttled calls to refreshRemoteConfig since our auth changed.
window.Signal.RemoteConfig.maybeRefreshRemoteConfig.cancel();
connect(true);
});