Fix initialization order in background.ts
This commit is contained in:
parent
c4541516b1
commit
03bc4764bc
1 changed files with 2 additions and 2 deletions
|
@ -1411,6 +1411,8 @@ export async function startApp(): Promise<void> {
|
|||
|
||||
void badgeImageFileDownloader.checkForFilesToDownload();
|
||||
|
||||
initializeExpiringMessageService(singleProtoJobQueue);
|
||||
|
||||
log.info('Expiration start timestamp cleanup: starting...');
|
||||
const messagesUnexpectedlyMissingExpirationStartTimestamp =
|
||||
await DataReader.getMessagesUnexpectedlyMissingExpirationStartTimestamp();
|
||||
|
@ -1504,8 +1506,6 @@ export async function startApp(): Promise<void> {
|
|||
window.Whisper.events.trigger('timetravel');
|
||||
});
|
||||
|
||||
initializeExpiringMessageService(singleProtoJobQueue);
|
||||
|
||||
void updateExpiringMessagesService();
|
||||
void tapToViewMessagesDeletionService.update();
|
||||
window.Whisper.events.on('timetravel', () => {
|
||||
|
|
Loading…
Reference in a new issue