diff --git a/react/features/notifications/constants.ts b/react/features/notifications/constants.ts index 6780875fa..bb05e037a 100644 --- a/react/features/notifications/constants.ts +++ b/react/features/notifications/constants.ts @@ -56,6 +56,13 @@ export const NOTIFICATION_ICON = { PARTICIPANTS: 'participants' }; +/** + * The identifier of the disable self view notification. + * + * @type {string} + */ +export const DISABLE_SELF_VIEW_NOTIFICATION_ID = 'DISABLE_SELF_VIEW_NOTIFICATION_ID'; + /** * The identifier of the lobby notification. * diff --git a/react/features/settings/middleware.web.js b/react/features/settings/middleware.web.js index ce0f41353..d83138e4e 100644 --- a/react/features/settings/middleware.web.js +++ b/react/features/settings/middleware.web.js @@ -1,6 +1,6 @@ import { MiddlewareRegistry } from '../base/redux'; import { SETTINGS_UPDATED, getHideSelfView } from '../base/settings'; -import { NOTIFICATION_TIMEOUT_TYPE, showNotification } from '../notifications'; +import { DISABLE_SELF_VIEW_NOTIFICATION_ID, NOTIFICATION_TIMEOUT_TYPE, showNotification } from '../notifications'; import { openSettingsDialog } from './actions'; import { SETTINGS_TABS } from './constants'; @@ -16,6 +16,7 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => { if (newValue !== oldValue && newValue) { dispatch(showNotification({ + uid: DISABLE_SELF_VIEW_NOTIFICATION_ID, titleKey: 'notify.selfViewTitle', customActionNameKey: [ 'settings.title' ], customActionHandler: [ () =>