From f45e56ba732551052c9d4921a7e245b79dee18e9 Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Wed, 22 Nov 2023 17:31:06 +0000 Subject: [PATCH] fix check --- src/matrix/Client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/Client.js b/src/matrix/Client.js index 65a1074d..7423b431 100644 --- a/src/matrix/Client.js +++ b/src/matrix/Client.js @@ -343,7 +343,7 @@ export class Client { * @param {string} token A Matrix Access Token */ async updateAccessToken(token) { - if (!_this.session) { + if (!this._session) { throw Error("No session loaded, cannot update access token"); } this._session.updateAccessToken(token);