Fixes issue with changing local passcode; disables passcode option for ephemeral sessions.

This commit is contained in:
Mo Bitar
2018-04-29 12:24:23 -05:00
parent a073eaa1ce
commit abb9521472
3 changed files with 14 additions and 5 deletions

View File

@@ -73,7 +73,10 @@ class StorageManager {
}
this.itemsStorageMode = mode;
this.storage.clear();
if(newStorage !== this.storage) {
// Only clear if this.storage isn't the same reference as newStorage
this.storage.clear();
}
this.storage = newStorage;
if(mode == StorageManager.FixedEncrypted) {