mirror of
https://github.com/element-hq/element-desktop.git
synced 2025-12-23 23:59:16 -05:00
Revert "Enable plain text encryption early if we actually mean to use basic_text as backend"
This commit is contained in:
@@ -350,6 +350,12 @@ class Store extends ElectronStore<StoreData> {
|
||||
await clearDataAndRelaunch();
|
||||
}
|
||||
}
|
||||
|
||||
// We do not check allowPlaintextStorage here as it was already checked above if the storage is new
|
||||
// and if the storage is existing then we should continue to honour the backend used to write the data
|
||||
if (safeStorageBackend === "basic_text" && selectedSafeStorageBackend === safeStorageBackend) {
|
||||
safeStorage.setUsePlainTextEncryption(true);
|
||||
}
|
||||
} else if (!safeStorageBackend) {
|
||||
safeStorageBackend = this.mode === Mode.Encrypted ? "system" : "plaintext";
|
||||
this.recordSafeStorageBackend(safeStorageBackend);
|
||||
|
||||
Reference in New Issue
Block a user