Skip to content

Commit 9c91907

Browse files
[mirotalk] - fix(client): non-presenters leave room directly, presenters keep exit dropdown
1 parent d6d774b commit 9c91907

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

public/js/client.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7526,6 +7526,7 @@ function setAboutBtn() {
75267526
function setLeaveRoomBtn() {
75277527
leaveRoomBtn.addEventListener('click', (e) => {
75287528
if (e && e.shiftKey) return leaveRoom();
7529+
if (!isPresenter) return leaveRoom();
75297530
toggleExitMenu();
75307531
});
75317532
if (exitLeaveBtn) exitLeaveBtn.onclick = handleExitLeave;

0 commit comments

Comments
 (0)