Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32523250
D12294.1767134371.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D12294.1767134371.diff
View Options
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
@@ -889,21 +889,15 @@
return encodedUpdatedPermissions;
}
-type ThreadIsWithBlockedUserOnlyOptions = {
- +checkOnlyViewerBlock: boolean,
- +skipMemberAdminRoleCheck: boolean,
-};
-
function threadIsWithBlockedUserOnly(
threadInfo: LegacyRawThreadInfo | RawThreadInfo,
viewerID: ?string,
userInfos: UserInfos,
- options: ThreadIsWithBlockedUserOnlyOptions,
+ checkOnlyViewerBlock: boolean,
): boolean {
- const { checkOnlyViewerBlock, skipMemberAdminRoleCheck } = options;
if (
threadOrParentThreadIsGroupChat(threadInfo) ||
- (!skipMemberAdminRoleCheck && threadOrParentThreadHasAdminRole(threadInfo))
+ threadOrParentThreadHasAdminRole(threadInfo)
) {
return false;
}
@@ -961,12 +955,7 @@
viewerID: ?string,
userInfos: UserInfos,
): boolean {
- const options: ThreadIsWithBlockedUserOnlyOptions = {
- checkOnlyViewerBlock: false,
- skipMemberAdminRoleCheck: false,
- };
-
- return threadIsWithBlockedUserOnly(threadInfo, viewerID, userInfos, options);
+ return threadIsWithBlockedUserOnly(threadInfo, viewerID, userInfos, false);
}
function useThreadFrozenDueToViewerBlock(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 30, 10:39 PM (11 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5870565
Default Alt Text
D12294.1767134371.diff (1 KB)
Attached To
Mode
D12294: [lib] Remove `skipMemberAdminRoleCheck` option from `threadIsWithBlockedUserOnly`
Attached
Detach File
Event Timeline
Log In to Comment