clarify with comments

This commit is contained in:
Bruno Windels 2021-05-18 11:54:18 +02:00
parent f92b1df4fc
commit 754e7e7bb2

View file

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