diff --git a/web/modals/threads/notifications/notifications-modal.react.js b/web/modals/threads/notifications/notifications-modal.react.js --- a/web/modals/threads/notifications/notifications-modal.react.js +++ b/web/modals/threads/notifications/notifications-modal.react.js @@ -7,6 +7,7 @@ updateSubscriptionActionTypes, } from 'lib/actions/user-actions'; import { threadInfoSelector } from 'lib/selectors/thread-selectors'; +import { threadIsSidebar } from 'lib/shared/thread-utils'; import { useServerCall, useDispatchActionPromise, @@ -90,6 +91,7 @@ const { onClose, threadID } = props; const threadInfo = useSelector(state => threadInfoSelector(state)[threadID]); const { subscription } = threadInfo.currentUser; + const isSidebar = threadIsSidebar(threadInfo); const initialThreadSetting = React.useMemo(() => { if (!subscription.home) { @@ -185,8 +187,12 @@ threadID, ]); + const modalName = isSidebar + ? 'Thread notifications' + : 'Channel notifications'; + return ( - +
{focusedItem}