Fixes several bugs

This commit is contained in:
Scott Nonnenberg 2020-08-04 18:13:19 -07:00 committed by GitHub
parent 7eabdffcd0
commit 57308d3104
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 164 additions and 84 deletions

View file

@ -595,6 +595,11 @@
});
window.Signal.conversationControllerStart();
// We start this up before ConversationController.load() to ensure that our feature
// flags are represented in the cached props we generate on load of each convo.
window.Signal.RemoteConfig.initRemoteConfig();
try {
await Promise.all([
ConversationController.load(),
@ -1515,8 +1520,6 @@
}
});
window.Signal.RemoteConfig.initRemoteConfig();
// Maybe refresh remote configuration when we become active
window.registerForActive(async () => {
await window.Signal.RemoteConfig.maybeRefreshRemoteConfig();