From 799235fcbfdd541625fe2c07a1997b4563e7c9a7 Mon Sep 17 00:00:00 2001 From: Paulo Pinto Date: Thu, 30 Nov 2023 12:54:20 +0000 Subject: [PATCH] Make login the default screen --- frontend/iframe/viewmodels/RootViewModel.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/frontend/iframe/viewmodels/RootViewModel.ts b/frontend/iframe/viewmodels/RootViewModel.ts index ff09138..258cf90 100644 --- a/frontend/iframe/viewmodels/RootViewModel.ts +++ b/frontend/iframe/viewmodels/RootViewModel.ts @@ -196,20 +196,12 @@ export class RootViewModel extends ViewModel { // We were not able to restore the last URL. // So we send the user to the screen that makes the most sense, according to how many sessions they have. - // Go to Login when there are no sessions. - if (sessionInfos.length === 0) { - this.navigation.push(Section.Login); - return; - } - - // Open session. if (sessionInfos.length === 1) { this.navigation.push(Section.Session, sessionInfos[0].id); return; } - // Open session picker. - this.navigation.push(Section.Session); + this.navigation.push(Section.Login); } private async resolveRoomAlias(roomIdOrAlias: string): Promise {