forked from mystiq/hydrogen-web
also ask for new key if backup version is not found
This commit is contained in:
parent
17275a5390
commit
62acd458c6
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ export class KeyBackup {
|
||||||
this._hasBackedUpAllKeys = true;
|
this._hasBackedUpAllKeys = true;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this._stopped = true;
|
this._stopped = true;
|
||||||
if (err.name === "HomeServerError" && err.errcode === "M_WRONG_ROOM_KEYS_VERSION") {
|
if (err.name === "HomeServerError" && (err.errcode === "M_WRONG_ROOM_KEYS_VERSION" || err.errcode === "M_NOT_FOUND")) {
|
||||||
log.set("wrong_version", true);
|
log.set("wrong_version", true);
|
||||||
this._needsNewKey = true;
|
this._needsNewKey = true;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue