You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
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:
@@ -110,4 +110,10 @@ export async function checkConsistency() {
|
||||
error("Storage consistency checks failed");
|
||||
track("Consistency checks failed");
|
||||
}
|
||||
|
||||
return {
|
||||
dataInLocalStorage,
|
||||
dataInCryptoStore,
|
||||
healthy,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user