add skipLobby to params

Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
Timo K
2023-09-24 22:51:20 +02:00
parent 5900b76be2
commit 5897104331
3 changed files with 77 additions and 61 deletions

View File

@@ -111,6 +111,12 @@ interface UrlParams {
* E2EE password
*/
password: string | null;
/**
* Setting this flag skips the lobby and brings you in the call directly.
* In the widget this can be combined with preload to pass the device settings
* with the join widget action.
*/
skipLobby: boolean;
}
// This is here as a stopgap, but what would be far nicer is a function that
@@ -206,6 +212,7 @@ export const getUrlParams = (
fontScale: Number.isNaN(fontScale) ? null : fontScale,
analyticsID: parser.getParam("analyticsID"),
allowIceFallback: parser.getFlagParam("allowIceFallback"),
skipLobby: parser.getFlagParam("skipLobby"),
};
};