Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fixes moderator notifications on moderator indicator disabled

yanasf10177a3526c
diff --git a/modules/UI/UI.js b/modules/UI/UI.js
index eae77ddb88..0a208ffaae 100644
--- a/modules/UI/UI.js
+++ b/modules/UI/UI.js
@@ -675,7 +675,9 @@ UI.updateLocalRole = function (isModerator) {
SettingsMenu.showFollowMeOptions(isModerator);
if (isModerator) {
- messageHandler.notify(null, "notify.me", 'connected', "notify.moderator");
+ if (!interfaceConfig.DISABLE_FOCUS_INDICATOR)
+ messageHandler
+ .notify(null, "notify.me", 'connected', "notify.moderator");
Recording.checkAutoRecord();
}
@@ -689,7 +691,9 @@ UI.updateLocalRole = function (isModerator) {
UI.updateUserRole = function (user) {
VideoLayout.showModeratorIndicator();
- if (!user.isModerator()) {
+ // We don't need to show moderator notifications when the focus (moderator)
+ // indicator is disabled.
+ if (!user.isModerator() || interfaceConfig.DISABLE_FOCUS_INDICATOR) {
return;
}
diff --git a/modules/UI/videolayout/SmallVideo.js b/modules/UI/videolayout/SmallVideo.js
index 7b7192faee..64e59c087c 100644
--- a/modules/UI/videolayout/SmallVideo.js
+++ b/modules/UI/videolayout/SmallVideo.js
@@ -291,7 +291,9 @@ SmallVideo.prototype.getVideoMutedIndicator = function () {
*/
SmallVideo.prototype.createModeratorIndicatorElement = function () {
// don't create moderator indicator if DISABLE_FOCUS_INDICATOR is true
- if (interfaceConfig.DISABLE_FOCUS_INDICATOR) return false;
+ if (interfaceConfig.DISABLE_FOCUS_INDICATOR)
+ return false;
+
// Show moderator indicator
var indicatorSpan = $('#' + this.videoSpanId + ' .focusindicator');