Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3403558
D9332.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
586 B
Referenced Files
None
Subscribers
None
D9332.diff
View Options
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
@@ -226,13 +226,8 @@
);
}
-function threadIsGroupChat(threadInfo: ThreadInfo | RawThreadInfo): boolean {
- return (
- threadMembersWithoutAddedAshoat(threadInfo).filter(
- member =>
- member.role || member.permissions[threadPermissions.VOICED]?.value,
- ).length > 2
- );
+function threadIsGroupChat(threadInfo: ThreadInfo): boolean {
+ return threadInfo.members.length > 2;
}
function threadOrParentThreadIsGroupChat(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 4, 3:49 AM (6 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2610431
Default Alt Text
D9332.diff (586 B)
Attached To
Mode
D9332: [lib] Simplify threadIsGroupChat check
Attached
Detach File
Event Timeline
Log In to Comment