Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3353625
D12321.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
776 B
Referenced Files
None
Subscribers
None
D12321.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
@@ -45,6 +45,7 @@
MemberInfoWithPermissions,
RoleInfo,
ThreadInfo,
+ MemberInfoSansPermissions,
} from '../types/minimally-encoded-thread-permissions-types.js';
import {
decodeMinimallyEncodedRoleInfo,
@@ -312,7 +313,11 @@
}
function threadOtherMembers<
- T: LegacyMemberInfo | MemberInfoWithPermissions | RelativeMemberInfo,
+ T:
+ | LegacyMemberInfo
+ | MemberInfoWithPermissions
+ | MemberInfoSansPermissions
+ | RelativeMemberInfo,
>(memberInfos: $ReadOnlyArray<T>, viewerID: ?string): $ReadOnlyArray<T> {
return memberInfos.filter(
memberInfo => memberInfo.role && memberInfo.id !== viewerID,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 10:36 AM (20 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2575036
Default Alt Text
D12321.diff (776 B)
Attached To
Mode
D12321: [lib] Add `MemberInfoSansPermissions` support to `threadOtherMembers`
Attached
Detach File
Event Timeline
Log In to Comment