mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
also ask for new key if backup version is not found
This commit is contained in:
parent
17275a5390
commit
62acd458c6
@ -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 New Issue
Block a user