From 32237d70080c9b301b85742eee9bdfd26b279605 Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Wed, 10 Aug 2022 16:38:52 -0700 Subject: [PATCH] Cancel throttled refreshRemoteConfig on link --- ts/background.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ts/background.ts b/ts/background.ts index 204d975672..aace9988c0 100644 --- a/ts/background.ts +++ b/ts/background.ts @@ -1834,6 +1834,10 @@ export async function startApp(): Promise { server.authenticate( window.textsecure.storage.user.getWebAPICredentials() ); + + // Cancel throttled calls to refreshRemoteConfig since our auth changed. + window.Signal.RemoteConfig.maybeRefreshRemoteConfig.cancel(); + connect(true); });