Skip to content

Commit e6a68eb

Browse files
committed
Avoid checking key backup status if guest
Fixes element-hq/element-web#7839. Signed-off-by: J. Ryan Stinnett <[email protected]>
1 parent 2d3669b commit e6a68eb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/crypto/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,11 @@ Crypto.prototype.init = async function() {
212212
*/
213213
Crypto.prototype._checkAndStartKeyBackup = async function() {
214214
console.log("Checking key backup status...");
215+
if (this._baseApis.isGuest()) {
216+
console.log("Skipping key backup check since user is guest");
217+
this._checkedForBackup = true;
218+
return;
219+
}
215220
let backupInfo;
216221
try {
217222
backupInfo = await this._baseApis.getKeyBackupVersion();

0 commit comments

Comments
 (0)