Skip to content

Commit

Permalink
squash: Drop extra hide lobby screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Nov 4, 2024
1 parent a961969 commit f3560eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions react/features/lobby/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,9 @@ function _conferenceFailed({ dispatch, getState }: IStore, next: Function, actio
}

// if both are available pre-join is with priority (the case when pre-join is enabled)
// when pre-join is disabled, and we are in lobby with error, we want to end up in lobby UI
// instead of hiding it and showing conference UI. Still in lobby the user can retry
// after we show the error notification
if (isPrejoinPageVisible(state)) {
dispatch(hideLobbyScreen());
}
Expand All @@ -338,8 +341,6 @@ function _conferenceFailed({ dispatch, getState }: IStore, next: Function, actio
descriptionKey: 'lobby.joinRejectedMessage'
}, NOTIFICATION_TIMEOUT_TYPE.STICKY)
);
} else {
dispatch(hideLobbyScreen());
}

return next(action);
Expand Down

0 comments on commit f3560eb

Please sign in to comment.