Use create call instead of join call with loginURL
All checks were successful
Build & Push Docker Image / build (push) Successful in 1m10s
All checks were successful
Build & Push Docker Image / build (push) Successful in 1m10s
This commit is contained in:
@@ -39,11 +39,11 @@ function getRoomPasswords(uid) {
|
||||
return { moderatorPW: modPw, attendeePW: attPw };
|
||||
}
|
||||
|
||||
export async function createMeeting(room, logoutURL) {
|
||||
export async function createMeeting(room, logoutURL, loginURL = null) {
|
||||
const { moderatorPW, attendeePW } = getRoomPasswords(room.uid);
|
||||
|
||||
// Build welcome message with guest invite link
|
||||
let welcome = room.welcome_message || 'Willkommen!';
|
||||
let welcome = room.welcome_message || 'Welcome to this meeting!';
|
||||
if (logoutURL) {
|
||||
const guestLink = `${logoutURL}/join/${room.uid}`;
|
||||
welcome += `<br><br>To invite other participants, share this link:<br><a href="${guestLink}">${guestLink}</a>`;
|
||||
@@ -68,6 +68,9 @@ export async function createMeeting(room, logoutURL) {
|
||||
if (logoutURL) {
|
||||
params.logoutURL = logoutURL;
|
||||
}
|
||||
if (loginURL) {
|
||||
params.loginURL = loginURL;
|
||||
}
|
||||
if (room.max_participants > 0) {
|
||||
params.maxParticipants = room.max_participants.toString();
|
||||
}
|
||||
@@ -77,7 +80,7 @@ export async function createMeeting(room, logoutURL) {
|
||||
return apiCall('create', params);
|
||||
}
|
||||
|
||||
export async function joinMeeting(uid, name, isModerator = false, avatarURL = null, loginURL = null) {
|
||||
export async function joinMeeting(uid, name, isModerator = false, avatarURL = null) {
|
||||
const { moderatorPW, attendeePW } = getRoomPasswords(uid);
|
||||
const params = {
|
||||
meetingID: uid,
|
||||
@@ -88,9 +91,6 @@ export async function joinMeeting(uid, name, isModerator = false, avatarURL = nu
|
||||
if (avatarURL) {
|
||||
params.avatarURL = avatarURL;
|
||||
}
|
||||
if (loginURL) {
|
||||
params.loginURL = loginURL;
|
||||
}
|
||||
return buildUrl('join', params);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user