Page MenuHomePhabricator

D5279.diff
No OneTemporary

D5279.diff

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<NotificationSettings>(() => {
if (!subscription.home) {
@@ -185,8 +187,12 @@
threadID,
]);
+ const modalName = isSidebar
+ ? 'Thread notifications'
+ : 'Channel notifications';
+
return (
- <Modal name="Channel notifications" size="fit-content" onClose={onClose}>
+ <Modal name={modalName} size="fit-content" onClose={onClose}>
<div className={css.container}>
<div className={css.optionsContainer}>
{focusedItem}

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 3:09 AM (15 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2510396
Default Alt Text
D5279.diff (1 KB)

Event Timeline