mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
Disable status change notifications when join/leave notifications are disabled.
This commit is contained in:
@@ -195,10 +195,14 @@ var interfaceConfig = {
|
|||||||
*/
|
*/
|
||||||
ENABLE_SCREENSHOT_CAPTURE: false,
|
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,
|
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,
|
DISABLE_JOIN_LEAVE_NOTIFICATIONS: false,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import { getLocalParticipant } from '../../react/features/base/participants';
|
|||||||
import { toggleChat } from '../../react/features/chat';
|
import { toggleChat } from '../../react/features/chat';
|
||||||
import { setDocumentUrl } from '../../react/features/etherpad';
|
import { setDocumentUrl } from '../../react/features/etherpad';
|
||||||
import { setFilmstripVisible } from '../../react/features/filmstrip';
|
import { setFilmstripVisible } from '../../react/features/filmstrip';
|
||||||
import { setNotificationsEnabled } from '../../react/features/notifications';
|
import { joinLeaveNotificationsDisabled, setNotificationsEnabled } from '../../react/features/notifications';
|
||||||
import {
|
import {
|
||||||
dockToolbox,
|
dockToolbox,
|
||||||
setToolboxEnabled,
|
setToolboxEnabled,
|
||||||
@@ -327,7 +327,9 @@ UI.updateUserStatus = (user, status) => {
|
|||||||
const reduxState = APP.store.getState() || {};
|
const reduxState = APP.store.getState() || {};
|
||||||
const { calleeInfoVisible } = reduxState['features/invite'] || {};
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user