Skip to content

Commit cab92f0

Browse files
authored
fix: Pause notification processing before app is fully initialized [WPB-18813] (#19569)
* chore: Bump @wireapp/core from 46.35.2 to 46.35.3 * pause and resume
1 parent 0347c58 commit cab92f0

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@wireapp/avs": "10.0.46",
1717
"@wireapp/avs-debugger": "0.0.7",
1818
"@wireapp/commons": "5.4.4",
19-
"@wireapp/core": "46.35.2",
19+
"@wireapp/core": "46.35.3",
2020
"@wireapp/kalium-backup": "0.0.4",
2121
"@wireapp/promise-queue": "2.4.4",
2222
"@wireapp/react-ui-kit": "9.64.0",

src/script/main/app.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,9 @@ export class App {
573573
},
574574
);
575575

576+
// Pause the notification queue until we've fully initialized
577+
this.core.pauseNotificationQueue();
578+
576579
eventLogger.log(AppInitializationStep.DecryptionCompleted, {count: totalNotifications});
577580

578581
await conversationRepository.init1To1Conversations(connections, conversations);
@@ -636,6 +639,10 @@ export class App {
636639
this.logger.info(`App version ${Environment.version()} loaded in ${Date.now() - startTime}ms`);
637640

638641
eventLogger.log(AppInitializationStep.AppInitCompleted);
642+
643+
// resume the notification queue now that we're fully initialized
644+
this.core.resumeNotificationQueue();
645+
639646
return selfUser;
640647
} catch (error) {
641648
if (error instanceof BaseError) {

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8619,9 +8619,9 @@ __metadata:
86198619
languageName: node
86208620
linkType: hard
86218621

8622-
"@wireapp/core@npm:46.35.2":
8623-
version: 46.35.2
8624-
resolution: "@wireapp/core@npm:46.35.2"
8622+
"@wireapp/core@npm:46.35.3":
8623+
version: 46.35.3
8624+
resolution: "@wireapp/core@npm:46.35.3"
86258625
dependencies:
86268626
"@wireapp/api-client": "npm:^27.75.9"
86278627
"@wireapp/commons": "npm:^5.4.5"
@@ -8641,7 +8641,7 @@ __metadata:
86418641
long: "npm:^5.2.0"
86428642
uuid: "npm:9.0.1"
86438643
zod: "npm:3.24.2"
8644-
checksum: 10/fdc3aa4352ff09124b87df5ebe820a4435fa55e33009b79b5f335da77a1edf4f5eb5bd6e8374d82102c86298ee839bf66c9875c65023750f65b3fb8c9048615e
8644+
checksum: 10/a035c9fd50aa524e68dd240bdd1396ed7ce35f7e89271e6eef1d4d73b73cce409006ee20b5fbdb929882c86828d2f4b0601b5d7156b1630158291fd2d8582fad
86458645
languageName: node
86468646
linkType: hard
86478647

@@ -22466,7 +22466,7 @@ __metadata:
2246622466
"@wireapp/avs-debugger": "npm:0.0.7"
2246722467
"@wireapp/commons": "npm:5.4.4"
2246822468
"@wireapp/copy-config": "npm:2.3.3"
22469-
"@wireapp/core": "npm:46.35.2"
22469+
"@wireapp/core": "npm:46.35.3"
2247022470
"@wireapp/eslint-config": "npm:3.0.7"
2247122471
"@wireapp/kalium-backup": "npm:0.0.4"
2247222472
"@wireapp/prettier-config": "npm:0.6.4"

0 commit comments

Comments
 (0)