From d37965ef91496d3407c5dae3d80a54f0f9c0b99e Mon Sep 17 00:00:00 2001 From: Bruno Windels <274386+bwindels@users.noreply.github.com> Date: Fri, 14 Oct 2022 20:08:26 +0200 Subject: [PATCH] return promise from _createSessionAfterAuth --- 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 68eeed27..ce0c44d7 100644 --- a/src/matrix/Client.js +++ b/src/matrix/Client.js @@ -151,7 +151,7 @@ export class Client { * `homeserver` won't be resolved or normalized using this method, * use `lookupHomeserver` first if needed (not needed after registration) */ async startWithAuthData({accessToken, deviceId, userId, homeserver}) { - this._platform.logger.run("startWithAuthData", async (log) => { + await this._platform.logger.run("startWithAuthData", async (log) => { await this._createSessionAfterAuth({accessToken, deviceId, userId, homeserver}, true, log); }); }