Page MenuHomePhabricator

D12787.id42405.diff
No OneTemporary

D12787.id42405.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
Sat, Nov 23, 11:18 PM (20 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2572749
Default Alt Text
D12787.id42405.diff (1 KB)

Event Timeline