From 1c923a720bc77b8fcb4da4b1179f207dcf9be67e Mon Sep 17 00:00:00 2001 From: Bruno Windels <274386+bwindels@users.noreply.github.com> Date: Tue, 28 Mar 2023 11:33:59 +0200 Subject: [PATCH] fix login not working --- src/matrix/Session.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/matrix/Session.js b/src/matrix/Session.js index 4acdd56a..b999ba6b 100644 --- a/src/matrix/Session.js +++ b/src/matrix/Session.js @@ -496,7 +496,9 @@ export class Session { olmWorker: this._olmWorker, txn }); - log.set("keys", this._e2eeAccount.identityKeys); + if (this._e2eeAccount) { + log.set("keys", this._e2eeAccount.identityKeys); + } this._setupEncryption(); } const pendingEventsByRoomId = await this._getPendingEventsByRoom(txn);