Notify user when crypto data is missing
If we have account data in local storage but nothing in the crypto store, it generally means the browser has evicted IndexedDB out from under us. This adds a modal to explain the situation and offer to completely clear storage to get things back to normal. Fixes https://github.com/vector-im/riot-web/issues/9109
This commit is contained in:
parent
1ae429f57b
commit
328f0cd6bf
8 changed files with 154 additions and 9 deletions
|
@ -110,4 +110,10 @@ export async function checkConsistency() {
|
|||
error("Storage consistency checks failed");
|
||||
track("Consistency checks failed");
|
||||
}
|
||||
|
||||
return {
|
||||
dataInLocalStorage,
|
||||
dataInCryptoStore,
|
||||
healthy,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue