Disable status change notifications when join/leave notifications are disabled.

This commit is contained in:
damencho 2020-02-04 16:06:43 +00:00 committed by Дамян Минков
parent 3bfa4744c8
commit a425e9c92e
2 changed files with 10 additions and 4 deletions

View File

@ -195,10 +195,14 @@ var interfaceConfig = {
*/
ENABLE_SCREENSHOT_CAPTURE: false,
// If true, presence status: busy, calling, connected etc. is not displayed
/**
* If true, presence status: busy, calling, connected etc. is not displayed.
*/
DISABLE_PRESENCE_STATUS: false,
// If true, notifications regarding joining/leaving are no longer displayed
/**
* If true, notifications regarding joining/leaving are no longer displayed.
*/
DISABLE_JOIN_LEAVE_NOTIFICATIONS: false,
/**

View File

@ -16,7 +16,7 @@ import { getLocalParticipant } from '../../react/features/base/participants';
import { toggleChat } from '../../react/features/chat';
import { setDocumentUrl } from '../../react/features/etherpad';
import { setFilmstripVisible } from '../../react/features/filmstrip';
import { setNotificationsEnabled } from '../../react/features/notifications';
import { joinLeaveNotificationsDisabled, setNotificationsEnabled } from '../../react/features/notifications';
import {
dockToolbox,
setToolboxEnabled,
@ -327,7 +327,9 @@ UI.updateUserStatus = (user, status) => {
const reduxState = APP.store.getState() || {};
const { calleeInfoVisible } = reduxState['features/invite'] || {};
if (!status || calleeInfoVisible) {
// We hide status updates when join/leave notifications are disabled,
// as jigasi is the component with statuses and they are seen as join/leave notifications.
if (!status || calleeInfoVisible || joinLeaveNotificationsDisabled()) {
return;
}