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 @@ -916,26 +916,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, @@ -953,14 +933,6 @@ ); } -function threadFrozenDueToBlock( - threadInfo: LegacyRawThreadInfo | RawThreadInfo, - viewerID: ?string, - userInfos: UserInfos, -): boolean { - return threadIsWithBlockedUserOnly(threadInfo, viewerID, userInfos, false); -} - function useThreadFrozenDueToViewerBlock( threadInfo: ThreadInfo, communityThreadInfo: ?ThreadInfo, @@ -1676,7 +1648,6 @@ extractNewMentionedParentMembers, pendingThreadType, filterOutDisabledPermissions, - threadFrozenDueToBlock, useThreadFrozenDueToViewerBlock, rawThreadInfoFromServerThreadInfo, threadUIName,