Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3373979
D12787.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.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
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)
Attached To
Mode
D12787: [lib] Add `memberInfoSansPermissionsValidator` to `convertClientDBThreadInfoToRawThreadInfo`
Attached
Detach File
Event Timeline
Log In to Comment