Page MenuHomePhabricator

D7080.id23801.diff
No OneTemporary

D7080.id23801.diff

diff --git a/lib/shared/notif-utils.js b/lib/shared/notif-utils.js
--- a/lib/shared/notif-utils.js
+++ b/lib/shared/notif-utils.js
@@ -19,7 +19,11 @@
import type { CreateSidebarMessageInfo } from '../types/messages/create-sidebar.js';
import type { TextMessageInfo } from '../types/messages/text.js';
import type { NotifTexts, ResolvedNotifTexts } from '../types/notif-types.js';
-import type { ThreadInfo, ThreadType } from '../types/thread-types.js';
+import {
+ type ThreadInfo,
+ type ThreadType,
+ threadTypes,
+} from '../types/thread-types.js';
import type { RelativeUserInfo, UserInfo } from '../types/user-types.js';
import { prettyDate } from '../utils/date-utils.js';
import type { GetENSNames } from '../utils/ens-helpers.js';
@@ -124,7 +128,7 @@
const prefix = ET`${ET.user({ userInfo: creator })}`;
let body = `created a new ${threadNoun(threadType, parentThreadInfo.id)}`;
- if (parentThreadInfo.name) {
+ if (parentThreadInfo.name && parentThreadInfo.type !== threadTypes.GENESIS) {
body = ET`${body} in ${parentThreadInfo.name}`;
}

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 28, 8:42 AM (21 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2593444
Default Alt Text
D7080.id23801.diff (1 KB)

Event Timeline