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
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)

Event Timeline