diff --git a/bigbluebutton-html5/imports/ui/components/user-list/service.js b/bigbluebutton-html5/imports/ui/components/user-list/service.js index 9ad599475a..5adc898026 100644 --- a/bigbluebutton-html5/imports/ui/components/user-list/service.js +++ b/bigbluebutton-html5/imports/ui/components/user-list/service.js @@ -309,7 +309,7 @@ const removeUser = (userId) => { } }; -const toggleVoice = (userId) => { makeCall('toggleVoice', userId); }; +const toggleVoice = (userId) => { userId === Auth.userID ? makeCall('toggleSelfVoice') : makeCall('toggleVoice', userId); }; const changeRole = (userId, role) => { makeCall('changeRole', userId, role); }; diff --git a/bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/component.jsx b/bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/component.jsx index f56c57859e..83434a1da0 100644 --- a/bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/component.jsx @@ -168,12 +168,12 @@ class UserParticipants extends Component { }, mute: { label: () => intl.formatMessage(intlMessages.MuteUserAudioLabel), - handler: user => toggleVoice(user.id), + handler: (user) => toggleVoice(user.id), icon: 'audio_off', }, unmute: { label: () => intl.formatMessage(intlMessages.UnmuteUserAudioLabel), - handler: user => toggleVoice(user.id), + handler: (user) => toggleVoice(user.id), icon: 'audio_on', }, promote: {