Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3375989
D12293.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
985 B
Referenced Files
None
Subscribers
None
D12293.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
@@ -951,28 +951,19 @@
);
}
-function innerThreadFrozenDueToBlock(
+function threadFrozenDueToBlock(
threadInfo: LegacyRawThreadInfo | RawThreadInfo,
viewerID: ?string,
userInfos: UserInfos,
- skipMemberAdminRoleCheck: boolean,
): boolean {
const options: ThreadIsWithBlockedUserOnlyOptions = {
checkOnlyViewerBlock: false,
- skipMemberAdminRoleCheck,
+ skipMemberAdminRoleCheck: false,
};
return threadIsWithBlockedUserOnly(threadInfo, viewerID, userInfos, options);
}
-function threadFrozenDueToBlock(
- threadInfo: LegacyRawThreadInfo | RawThreadInfo,
- viewerID: ?string,
- userInfos: UserInfos,
-): boolean {
- return innerThreadFrozenDueToBlock(threadInfo, viewerID, userInfos, false);
-}
-
function useThreadFrozenDueToViewerBlock(
threadInfo: ThreadInfo,
communityThreadInfo: ?ThreadInfo,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 9:43 PM (18 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2591768
Default Alt Text
D12293.diff (985 B)
Attached To
Mode
D12293: [lib] Inline `innerThreadFrozenDueToBlock` in `threadFrozenDueToBlock`
Attached
Detach File
Event Timeline
Log In to Comment