Widget return to lobby (#2099)

* Return to lobby after call ended in widget mode

* Wait for making the widget sticky until connected

Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
Timo
2024-01-26 10:03:08 +01:00
committed by GitHub
parent 3bcb9fb327
commit 35a79364a9
3 changed files with 52 additions and 30 deletions

View File

@@ -125,6 +125,11 @@ export interface UrlParams {
* with the join widget action.
*/
skipLobby: boolean;
/**
* Setting this flag makes element call show the lobby after leaving a call.
* This is useful for video rooms.
*/
returnToLobby: boolean;
}
// This is here as a stopgap, but what would be far nicer is a function that
@@ -223,6 +228,7 @@ export const getUrlParams = (
allowIceFallback: parser.getFlagParam("allowIceFallback"),
perParticipantE2EE: parser.getFlagParam("perParticipantE2EE"),
skipLobby: parser.getFlagParam("skipLobby"),
returnToLobby: parser.getFlagParam("returnToLobby"),
};
};