( threadInfo: ThreadInfo | RawThreadInfo | LegacyRawThreadInfo, viewerID: ?string, userInfos: UserInfos, checkOnlyViewerBlock: boolean, )
| 1002 | } |
| 1003 | |
| 1004 | function threadIsWithBlockedUserOnlyWithoutAdminRoleCheck( |
| 1005 | threadInfo: ThreadInfo | RawThreadInfo | LegacyRawThreadInfo, |
| 1006 | viewerID: ?string, |
| 1007 | userInfos: UserInfos, |
| 1008 | checkOnlyViewerBlock: boolean, |
| 1009 | ): boolean { |
| 1010 | if (threadOrParentThreadIsGroupChat(threadInfo)) { |
| 1011 | return false; |
| 1012 | } |
| 1013 | return baseThreadIsWithBlockedUserOnly( |
| 1014 | threadInfo, |
| 1015 | viewerID, |
| 1016 | userInfos, |
| 1017 | checkOnlyViewerBlock, |
| 1018 | ); |
| 1019 | } |
| 1020 | |
| 1021 | function useThreadFrozenDueToViewerBlock( |
| 1022 | threadInfo: ThreadInfo, |
no test coverage detected