Auto-join host into live session when going live from green room.
Deploy Ladill Meet / deploy (push) Successful in 2m1s
Deploy Ladill Meet / deploy (push) Successful in 2m1s
Green room poll was racing go-live and sending the host to the ended page; carry participant session into the new live session instead. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1900,6 +1900,11 @@ function meetRoom() {
|
||||
|
||||
this.goingLive = true;
|
||||
|
||||
if (this.pollTimer) {
|
||||
clearInterval(this.pollTimer);
|
||||
this.pollTimer = null;
|
||||
}
|
||||
|
||||
try {
|
||||
const res = await fetch(this.config.goLiveUrl, {
|
||||
method: 'POST',
|
||||
@@ -1911,9 +1916,10 @@ function meetRoom() {
|
||||
}
|
||||
|
||||
const data = await res.json();
|
||||
window.location.href = data.room_url || `/room/${data.session_uuid}`;
|
||||
window.location.replace(data.room_url || `/room/${data.session_uuid}`);
|
||||
} catch {
|
||||
this.goingLive = false;
|
||||
this.pollTimer = setInterval(() => this.poll(), 3000);
|
||||
}
|
||||
},
|
||||
|
||||
@@ -2046,6 +2052,9 @@ function meetRoom() {
|
||||
|
||||
const data = await res.json();
|
||||
if (data.ended && data.redirect) {
|
||||
if (this.goingLive) {
|
||||
return;
|
||||
}
|
||||
this.redirectToMeetingEnded(data.redirect);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user