mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-09 14:31:16 +02:00
Merge pull request #16456 from vector-im/travis/sensible-jitsi-names
Jitsi widget: Read room name from query parameters
This commit is contained in:
commit
94a5cd3f83
@ -45,6 +45,7 @@ let userId: string;
|
|||||||
let jitsiAuth: string;
|
let jitsiAuth: string;
|
||||||
let roomId: string;
|
let roomId: string;
|
||||||
let openIdToken: IOpenIDCredentials;
|
let openIdToken: IOpenIDCredentials;
|
||||||
|
let roomName: string;
|
||||||
|
|
||||||
let widgetApi: WidgetApi;
|
let widgetApi: WidgetApi;
|
||||||
let meetApi: any; // JitsiMeetExternalAPI
|
let meetApi: any; // JitsiMeetExternalAPI
|
||||||
@ -104,6 +105,7 @@ let meetApi: any; // JitsiMeetExternalAPI
|
|||||||
userId = qsParam('userId');
|
userId = qsParam('userId');
|
||||||
jitsiAuth = qsParam('auth', true);
|
jitsiAuth = qsParam('auth', true);
|
||||||
roomId = qsParam('roomId', true);
|
roomId = qsParam('roomId', true);
|
||||||
|
roomName = qsParam('roomName', true);
|
||||||
|
|
||||||
if (widgetApi) {
|
if (widgetApi) {
|
||||||
await readyPromise;
|
await readyPromise;
|
||||||
@ -226,6 +228,7 @@ function joinConference() { // event handler bound in HTML
|
|||||||
if (displayName) meetApi.executeCommand("displayName", displayName);
|
if (displayName) meetApi.executeCommand("displayName", displayName);
|
||||||
if (avatarUrl) meetApi.executeCommand("avatarUrl", avatarUrl);
|
if (avatarUrl) meetApi.executeCommand("avatarUrl", avatarUrl);
|
||||||
if (userId) meetApi.executeCommand("email", userId);
|
if (userId) meetApi.executeCommand("email", userId);
|
||||||
|
if (roomName) meetApi.executeCommand("subject", roomName);
|
||||||
|
|
||||||
meetApi.on("readyToClose", () => {
|
meetApi.on("readyToClose", () => {
|
||||||
switchVisibleContainers();
|
switchVisibleContainers();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user