mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-05 23:10:28 +03:00
Add widgetId as a getWidgetUrl param
This commit is contained in:
parent
e5505cd5c2
commit
3bd7588497
1 changed files with 2 additions and 1 deletions
|
|
@ -40,6 +40,7 @@ export const getWidgetUrl = (
|
||||||
mx: MatrixClient,
|
mx: MatrixClient,
|
||||||
roomId: string,
|
roomId: string,
|
||||||
elementCallUrl: string,
|
elementCallUrl: string,
|
||||||
|
widgetId: string,
|
||||||
setParams: any
|
setParams: any
|
||||||
): URL => {
|
): URL => {
|
||||||
const baseUrl = window.location.origin;
|
const baseUrl = window.location.origin;
|
||||||
|
|
@ -48,7 +49,7 @@ export const getWidgetUrl = (
|
||||||
|
|
||||||
const params = new URLSearchParams({
|
const params = new URLSearchParams({
|
||||||
embed: 'true',
|
embed: 'true',
|
||||||
widgetId: `element-call-${roomId}`,
|
widgetId,
|
||||||
appPrompt: 'false',
|
appPrompt: 'false',
|
||||||
preload: 'false',
|
preload: 'false',
|
||||||
skipLobby: setParams.skipLobby ?? 'true',
|
skipLobby: setParams.skipLobby ?? 'true',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue