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 @@ -963,6 +963,7 @@ roles: rawThreadInfo.roles, currentUser: getMinimallyEncodedCurrentUser( rawThreadInfo, + null, viewerID, userInfos, ), @@ -998,10 +999,18 @@ function getMinimallyEncodedCurrentUser( threadInfo: RawThreadInfo | ThreadInfo, + communityThreadInfo: ?(RawThreadInfo | ThreadInfo), viewerID: ?string, userInfos: UserInfos, ): ThreadCurrentUserInfo { - if (!clientThreadFrozenDueToBlock(threadInfo, viewerID, userInfos)) { + if ( + !clientThreadFrozenDueToBlock( + threadInfo, + communityThreadInfo, + viewerID, + userInfos, + ) + ) { return threadInfo.currentUser; } const decodedPermissions = threadPermissionsFromBitmaskHex( @@ -1060,6 +1069,7 @@ function clientThreadFrozenDueToBlock( threadInfo: RawThreadInfo | ThreadInfo, + communityThreadInfo: ?(RawThreadInfo | ThreadInfo), viewerID: ?string, userInfos: UserInfos, ): boolean { @@ -1340,6 +1350,7 @@ ...updatedThread, currentUser: getMinimallyEncodedCurrentUser( updatedThread, + null, viewerID, userInfos, ),