Page MenuHomePhabricator

D6529.id21861.diff
No OneTemporary

D6529.id21861.diff

diff --git a/lib/shared/thread-utils.js b/lib/shared/thread-utils.js
--- a/lib/shared/thread-utils.js
+++ b/lib/shared/thread-utils.js
@@ -939,7 +939,21 @@
`To move a chat over here, switch the “Background” option in its settings.`;
function threadNoun(threadType: ThreadType): string {
- return threadType === threadTypes.SIDEBAR ? 'thread' : 'chat';
+ if (threadType === threadTypes.SIDEBAR) {
+ return 'thread';
+ } else if (
+ threadType === threadTypes.COMMUNITY_ROOT ||
+ threadType === threadTypes.COMMUNITY_ANNOUNCEMENT_ROOT ||
+ threadType === threadTypes.COMMUNITY_OPEN_SUBTHREAD ||
+ threadType === threadTypes.COMMUNITY_OPEN_ANNOUNCEMENT_SUBTHREAD ||
+ threadType === threadTypes.COMMUNITY_SECRET_SUBTHREAD ||
+ threadType === threadTypes.COMMUNITY_SECRET_ANNOUNCEMENT_SUBTHREAD ||
+ threadType === threadTypes.GENESIS
+ ) {
+ return 'channel';
+ } else {
+ return 'chat';
+ }
}
function threadLabel(threadType: ThreadType): string {

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 5:45 AM (18 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2684215
Default Alt Text
D6529.id21861.diff (997 B)

Event Timeline