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.
pull/21833/head
J. Ryan Stinnett 2020-01-29 16:54:08 +00:00
parent d8ca9d0f13
commit 6f0d88a126
1 changed files with 3 additions and 1 deletions

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) {