background: Initialize job queues earlier

This commit is contained in:
Scott Nonnenberg
2022-03-21 17:20:03 -07:00
committed by GitHub
parent 1d268da50b
commit 2ccd425ae2

View File

@@ -202,6 +202,10 @@ export async function startApp(): Promise<void> {
);
window.textsecure.server = server;
initializeAllJobQueues({
server,
});
challengeHandler = new ChallengeHandler({
storage: window.storage,
@@ -1618,11 +1622,6 @@ export async function startApp(): Promise<void> {
strictAssert(challengeHandler, 'start: challengeHandler');
await challengeHandler.load();
strictAssert(server, 'start: server');
initializeAllJobQueues({
server,
});
if (!window.storage.user.getNumber()) {
const ourConversation =
window.ConversationController.getOurConversation();