Skip to content

Commit 1ea96eb

Browse files
committed
Don't restore URL when don't have any sessions
1 parent 8d9345d commit 1ea96eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/iframe/viewmodels/RootViewModel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ export class RootViewModel extends ViewModel<SegmentType, Options> {
174174
private async _showInitialScreen(shouldRestoreLastUrl: boolean) {
175175
const sessionInfos = await this.platform.sessionInfoStorage.getAll();
176176

177-
// If we're in single-room mode, and we only have a single session, navigate directly to the configured room.
178-
if (this._resolvedSingleRoomId && sessionInfos.length === 1) {
177+
// If we're in single-room mode, and we have at most one session, navigate directly to the configured room.
178+
if (this._resolvedSingleRoomId && sessionInfos.length <= 1) {
179179
shouldRestoreLastUrl = false;
180180
}
181181

0 commit comments

Comments
 (0)