Skip attachment migration for new users
This commit is contained in:
parent
6671228028
commit
50a0048bf2
1 changed files with 10 additions and 1 deletions
|
@ -133,7 +133,6 @@
|
|||
first = false;
|
||||
|
||||
ConversationController.load().then(start, start);
|
||||
idleDetector.start();
|
||||
});
|
||||
|
||||
Whisper.events.on('shutdown', function() {
|
||||
|
@ -413,6 +412,16 @@
|
|||
}
|
||||
}
|
||||
|
||||
storage.onready(async () => {
|
||||
const shouldSkipAttachmentMigrationForNewUsers = firstRun === true;
|
||||
if (shouldSkipAttachmentMigrationForNewUsers) {
|
||||
const database = Migrations0DatabaseWithAttachmentData.getDatabase();
|
||||
const connection =
|
||||
await Signal.Database.open(database.name, database.version);
|
||||
await Signal.Settings.markAttachmentMigrationComplete(connection);
|
||||
}
|
||||
idleDetector.start();
|
||||
});
|
||||
}
|
||||
/* eslint-disable */
|
||||
|
||||
|
|
Loading…
Reference in a new issue