Always persist last version when deleting configuration
This commit is contained in:
@@ -2911,7 +2911,6 @@ export async function startApp(): Promise<void> {
|
|||||||
const NUMBER_ID_KEY = 'number_id';
|
const NUMBER_ID_KEY = 'number_id';
|
||||||
const UUID_ID_KEY = 'uuid_id';
|
const UUID_ID_KEY = 'uuid_id';
|
||||||
const PNI_KEY = 'pni';
|
const PNI_KEY = 'pni';
|
||||||
const VERSION_KEY = 'version';
|
|
||||||
const LAST_PROCESSED_INDEX_KEY = 'attachmentMigration_lastProcessedIndex';
|
const LAST_PROCESSED_INDEX_KEY = 'attachmentMigration_lastProcessedIndex';
|
||||||
const IS_MIGRATION_COMPLETE_KEY = 'attachmentMigration_isComplete';
|
const IS_MIGRATION_COMPLETE_KEY = 'attachmentMigration_isComplete';
|
||||||
|
|
||||||
@@ -2968,7 +2967,6 @@ export async function startApp(): Promise<void> {
|
|||||||
} else {
|
} else {
|
||||||
await window.textsecure.storage.remove(LAST_PROCESSED_INDEX_KEY);
|
await window.textsecure.storage.remove(LAST_PROCESSED_INDEX_KEY);
|
||||||
}
|
}
|
||||||
await window.textsecure.storage.put(VERSION_KEY, window.getVersion());
|
|
||||||
|
|
||||||
// Re-hydrate items from memory; removeAllConfiguration above changed database
|
// Re-hydrate items from memory; removeAllConfiguration above changed database
|
||||||
await window.storage.fetch();
|
await window.storage.fetch();
|
||||||
|
@@ -44,5 +44,6 @@ export const STORAGE_UI_KEYS: ReadonlyArray<keyof StorageAccessType> = [
|
|||||||
'system-tray-setting',
|
'system-tray-setting',
|
||||||
'textFormatting',
|
'textFormatting',
|
||||||
'theme-setting',
|
'theme-setting',
|
||||||
|
'version',
|
||||||
'zoomFactor',
|
'zoomFactor',
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user