fix check

This commit is contained in:
Half-Shot 2023-11-22 17:31:06 +00:00
parent e5b87a8518
commit f45e56ba73

View File

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