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);