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 @@ -984,26 +984,6 @@ ); } -function threadIsWithBlockedUserOnly( - threadInfo: LegacyRawThreadInfo | RawThreadInfo, - viewerID: ?string, - userInfos: UserInfos, - checkOnlyViewerBlock: boolean, -): boolean { - if ( - threadOrParentThreadIsGroupChat(threadInfo) || - threadOrParentThreadHasAdminRole(threadInfo) - ) { - return false; - } - return baseThreadIsWithBlockedUserOnly( - threadInfo, - viewerID, - userInfos, - checkOnlyViewerBlock, - ); -} - function threadIsWithBlockedUserOnlyWithoutAdminRoleCheck( threadInfo: ThreadInfo | RawThreadInfo | LegacyRawThreadInfo, viewerID: ?string, @@ -1021,14 +1001,6 @@ ); } -function threadFrozenDueToBlock( - threadInfo: LegacyRawThreadInfo | RawThreadInfo, - viewerID: ?string, - userInfos: UserInfos, -): boolean { - return threadIsWithBlockedUserOnly(threadInfo, viewerID, userInfos, false); -} - function useThreadFrozenDueToViewerBlock( threadInfo: ThreadInfo, communityThreadInfo: ?ThreadInfo, @@ -1746,7 +1718,6 @@ extractNewMentionedParentMembers, pendingThreadType, filterOutDisabledPermissions, - threadFrozenDueToBlock, useThreadFrozenDueToViewerBlock, rawThreadInfoFromServerThreadInfo, threadUIName,