Disable status change notifications when join/leave notifications are disabled.
This commit is contained in:
parent
3bfa4744c8
commit
a425e9c92e
|
@ -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,
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue