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:
J. Ryan Stinnett 2019-03-28 16:22:17 +00:00
parent 1ae429f57b
commit 328f0cd6bf
8 changed files with 154 additions and 9 deletions

View file

@ -110,4 +110,10 @@ export async function checkConsistency() {
error("Storage consistency checks failed");
track("Consistency checks failed");
}
return {
dataInLocalStorage,
dataInCryptoStore,
healthy,
};
}