return promise from _createSessionAfterAuth

This commit is contained in:
Bruno Windels 2022-10-14 20:08:26 +02:00
parent 4d5f202d94
commit d37965ef91

View File

@ -151,7 +151,7 @@ export class Client {
* `homeserver` won't be resolved or normalized using this method, * `homeserver` won't be resolved or normalized using this method,
* use `lookupHomeserver` first if needed (not needed after registration) */ * use `lookupHomeserver` first if needed (not needed after registration) */
async startWithAuthData({accessToken, deviceId, userId, homeserver}) { 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); await this._createSessionAfterAuth({accessToken, deviceId, userId, homeserver}, true, log);
}); });
} }