From bcde59a531339ffa89767541e835799e124c5ac5 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Sat, 28 Jan 2023 18:08:44 +0100 Subject: [PATCH] [mirotalksfu] - add participants button --- public/js/Room.js | 3 +-- public/js/Rules.js | 2 +- public/views/Room.html | 6 +----- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/public/js/Room.js b/public/js/Room.js index c73febda..1dda7629 100644 --- a/public/js/Room.js +++ b/public/js/Room.js @@ -705,6 +705,7 @@ function roomIsReady() { hide(tabRecordingBtn); } BUTTONS.main.chatButton && show(chatButton); + BUTTONS.main.participantsButton && show(participantsButton); !BUTTONS.chat.chatSaveButton && hide(chatSaveButton); BUTTONS.chat.chatEmojiButton && show(chatEmojiButton); BUTTONS.chat.chatMarkdownButton && show(chatMarkdownButton); @@ -744,7 +745,6 @@ function roomIsReady() { isAudioAllowed ? show(stopAudioButton) : BUTTONS.main.startAudioButton && show(startAudioButton); isVideoAllowed ? show(stopVideoButton) : BUTTONS.main.startVideoButton && show(startVideoButton); show(fileShareButton); - BUTTONS.settings.participantsButton && show(participantsButton); BUTTONS.settings.lockRoomButton && show(lockRoomButton); BUTTONS.settings.lobbyButton && show(lobbyButton); BUTTONS.main.aboutButton && show(aboutButton); @@ -1036,7 +1036,6 @@ function handleButtons() { whiteboardAction(getWhiteboardAction('close')); }; participantsButton.onclick = () => { - rc.toggleMySettings(); getRoomParticipants(); }; participantsCloseBtn.onclick = () => { diff --git a/public/js/Rules.js b/public/js/Rules.js index 43807f4e..2d74acbc 100644 --- a/public/js/Rules.js +++ b/public/js/Rules.js @@ -16,6 +16,7 @@ const BUTTONS = { startScreenButton: true, swapCameraButton: true, chatButton: true, + participantsButton: true, whiteboardButton: true, settingsButton: true, aboutButton: true, // Please keep me always visible, thank you! @@ -25,7 +26,6 @@ const BUTTONS = { lockRoomButton: true, unlockRoomButton: true, lobbyButton: true, - participantsButton: true, tabRecording: true, }, producerVideo: { diff --git a/public/views/Room.html b/public/views/Room.html index 1201a493..9c6a5577 100644 --- a/public/views/Room.html +++ b/public/views/Room.html @@ -130,6 +130,7 @@ access to use this app. + @@ -202,11 +203,6 @@ access to use this app.

File sharing


- -