Regression: Add token to Jitsi call on iOS (#4863)
* add token to jitsi builder * fix room * fix room and remove flags * fix video prop
This commit is contained in:
parent
3cd1a5f0a6
commit
18cc16beb7
|
@ -38,8 +38,8 @@ const JitsiMeetView = (): React.ReactElement => {
|
||||||
const regex = /(?:\/.*\/)(.*)/;
|
const regex = /(?:\/.*\/)(.*)/;
|
||||||
const urlWithoutServer = regex.exec(url)![1];
|
const urlWithoutServer = regex.exec(url)![1];
|
||||||
const serverUrl = url.replace(`/${urlWithoutServer}`, '');
|
const serverUrl = url.replace(`/${urlWithoutServer}`, '');
|
||||||
const room = urlWithoutServer.split('#')[0];
|
const room = (url.includes('jwt=') ? urlWithoutServer.split('jwt=')[0] : urlWithoutServer.split('#')[0]).replace('?', '');
|
||||||
|
const jwtToken = url.includes('jwt=') ? url.substring(url.indexOf('jwt=') + 4, url.lastIndexOf('#config')) : undefined;
|
||||||
const conferenceOptions = {
|
const conferenceOptions = {
|
||||||
room,
|
room,
|
||||||
serverUrl,
|
serverUrl,
|
||||||
|
@ -51,19 +51,12 @@ const JitsiMeetView = (): React.ReactElement => {
|
||||||
audioOnly,
|
audioOnly,
|
||||||
audioMuted: false,
|
audioMuted: false,
|
||||||
videoMuted: audioOnly,
|
videoMuted: audioOnly,
|
||||||
|
token: jwtToken,
|
||||||
featureFlags: {
|
featureFlags: {
|
||||||
'live-streaming.enabled': false,
|
'calendar.enabled': false
|
||||||
'calendar.enabled': false,
|
|
||||||
'call-integration.enabled': false,
|
|
||||||
'pip.enabled': false,
|
|
||||||
'invite.enabled': false,
|
|
||||||
'welcomepage.enabled': false,
|
|
||||||
'add-people.enabled': false
|
|
||||||
},
|
},
|
||||||
configOverrides: {
|
configOverrides: {
|
||||||
'breakoutRooms.hideAddRoomButton': false,
|
'breakoutRooms.hideAddRoomButton': false
|
||||||
'breakoutRooms.hideAutoAssignButton': false,
|
|
||||||
'breakoutRooms.hideJoinRoomButton': false
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
logEvent(videoConf ? events.LIVECHAT_VIDEOCONF_JOIN : events.JM_CONFERENCE_JOIN);
|
logEvent(videoConf ? events.LIVECHAT_VIDEOCONF_JOIN : events.JM_CONFERENCE_JOIN);
|
||||||
|
|
Loading…
Reference in New Issue