Add guest link to welcome message
All checks were successful
Build & Push Docker Image / build (push) Successful in 1m7s
All checks were successful
Build & Push Docker Image / build (push) Successful in 1m7s
This commit is contained in:
@@ -41,12 +41,23 @@ function getRoomPasswords(uid) {
|
|||||||
|
|
||||||
export async function createMeeting(room, logoutURL) {
|
export async function createMeeting(room, logoutURL) {
|
||||||
const { moderatorPW, attendeePW } = getRoomPasswords(room.uid);
|
const { moderatorPW, attendeePW } = getRoomPasswords(room.uid);
|
||||||
|
|
||||||
|
// Build welcome message with guest invite link
|
||||||
|
let welcome = room.welcome_message || 'Willkommen!';
|
||||||
|
if (logoutURL) {
|
||||||
|
const guestLink = `${logoutURL}/join/${room.uid}`;
|
||||||
|
welcome += `<br><br>To invite other participants, share this link:<br><a href="${guestLink}">${guestLink}</a>`;
|
||||||
|
if (room.access_code) {
|
||||||
|
welcome += `<br>Access Code: <b>${room.access_code}</b>`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const params = {
|
const params = {
|
||||||
meetingID: room.uid,
|
meetingID: room.uid,
|
||||||
name: room.name,
|
name: room.name,
|
||||||
attendeePW,
|
attendeePW,
|
||||||
moderatorPW,
|
moderatorPW,
|
||||||
welcome: room.welcome_message || 'Willkommen!',
|
welcome,
|
||||||
record: room.record_meeting ? 'true' : 'false',
|
record: room.record_meeting ? 'true' : 'false',
|
||||||
autoStartRecording: 'false',
|
autoStartRecording: 'false',
|
||||||
allowStartStopRecording: 'true',
|
allowStartStopRecording: 'true',
|
||||||
|
|||||||
Reference in New Issue
Block a user