From 754e7e7bb28263101793f5b523a56a2b7fe4fc28 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 18 May 2021 11:54:18 +0200 Subject: [PATCH] clarify with comments --- src/domain/session/room/UnknownRoomViewModel.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/domain/session/room/UnknownRoomViewModel.js b/src/domain/session/room/UnknownRoomViewModel.js index 5dc8cd65..e7969298 100644 --- a/src/domain/session/room/UnknownRoomViewModel.js +++ b/src/domain/session/room/UnknownRoomViewModel.js @@ -36,7 +36,11 @@ export class UnknownRoomViewModel extends ViewModel { try { const roomId = await this._session.joinRoom(this.roomIdOrAlias); // navigate to roomId if we were at the alias + // so we're subscribed to the right room status + // and we'll switch to the room view model once + // the join is synced this.navigation.push("room", roomId); + // keep busy on true while waiting for the join to sync } catch (err) { this._error = err; this._busy = false;