Merge pull request #3985 from matrix-org/jryans/relax-account-data-check

Relax secret storage account data check
This commit is contained in:
J. Ryan Stinnett 2020-01-29 20:40:13 +00:00 committed by GitHub
commit 786ddb8a7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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