Auto-join host into live session when going live from green room.
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:
isaacclad
2026-07-02 06:57:33 +00:00
co-authored by Cursor
parent eadb77dd5b
commit 8162827957
6 changed files with 248 additions and 7 deletions
+10 -1
View File
@@ -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;
}