Relax secret storage account data check

If the homeserver is confused about account data or otherwise explodes here, we
don't want to block login, so just warn in this case.
This commit is contained in:
J. Ryan Stinnett 2020-01-29 16:54:08 +00:00
parent d8ca9d0f13
commit 6f0d88a126

View file

@ -1864,7 +1864,9 @@ export default createReactClass({
try {
masterKeyInStorage = !!await cli.getAccountDataFromServer("m.cross_signing.master");
} catch (e) {
if (e.errcode !== "M_NOT_FOUND") throw e;
if (e.errcode !== "M_NOT_FOUND") {
console.warn("Secret storage account data check failed", e);
}
}
if (masterKeyInStorage) {