Page MenuHomePhabricator

D12787.diff
No OneTemporary

D12787.diff

diff --git a/lib/utils/thread-ops-utils.js b/lib/utils/thread-ops-utils.js
--- a/lib/utils/thread-ops-utils.js
+++ b/lib/utils/thread-ops-utils.js
@@ -7,6 +7,7 @@
persistedRoleInfoValidator,
threadCurrentUserInfoValidator,
minimallyEncodedThickMemberInfoValidator,
+ memberInfoSansPermissionsValidator,
} from '../permissions/minimally-encoded-raw-thread-info-validators.js';
import type {
RawThreadInfo,
@@ -53,9 +54,10 @@
const rawMembers = JSON.parse(clientDBThreadInfo.members);
const minimallyEncodedMembers = rawMembers.map(rawMember => {
invariant(
- memberInfoWithPermissionsValidator.is(rawMember) ||
- legacyMemberInfoValidator.is(rawMember) ||
- minimallyEncodedThickMemberInfoValidator.is(rawMember),
+ memberInfoSansPermissionsValidator.is(rawMember) ||
+ minimallyEncodedThickMemberInfoValidator.is(rawMember) ||
+ memberInfoWithPermissionsValidator.is(rawMember) ||
+ legacyMemberInfoValidator.is(rawMember),
'rawMember must be valid [MinimallyEncoded/Legacy]MemberInfo',
);
return rawMember.minimallyEncoded

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 27, 1:01 PM (17 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2590490
Default Alt Text
D12787.diff (1 KB)

Event Timeline