mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
Skip attachment migration for new users
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user