Simple refactor for skipLobby (#30848)

* Simple refactor for skipLobby (and remove returnToLobby)

* Tidyup

* Remove unused tests

* Add video room support.

* Add a test for video rooms

* tidy

* Document
This commit is contained in:
Will Hunt
2025-09-25 13:46:37 +01:00
committed by GitHub
parent 65eb4ce1d3
commit 75083c2e80
11 changed files with 184 additions and 164 deletions
+1 -1
View File
@@ -242,7 +242,7 @@ export function IncomingCallToast({ notificationEvent }: Props): JSX.Element {
action: Action.ViewRoom,
room_id: room?.roomId,
view_call: true,
skipLobby: skipLobbyToggle ?? ("shiftKey" in e ? e.shiftKey : false),
skipLobby: ("shiftKey" in e && e.shiftKey) || skipLobbyToggle,
metricsTrigger: undefined,
});
},