Page MenuHomePhabricator

D12321.diff
No OneTemporary

D12321.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
@@ -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

Mime Type
text/plain
Expires
Thu, Nov 28, 1:19 AM (21 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2592291
Default Alt Text
D12321.diff (776 B)

Event Timeline