Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3350593
D12787.id42405.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D12787.id42405.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D12787: [lib] Add `memberInfoSansPermissionsValidator` to `convertClientDBThreadInfoToRawThreadInfo`
Attached
Detach File
Event Timeline
Log In to Comment