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 @@ -1411,6 +1411,10 @@ const messageCreatorUserInfo = useSelector( state => state.userStore.userInfos[messageInfo.creator.id], ); + const hasCreateSidebarsPermission = useThreadHasPermission( + threadInfo, + threadPermissions.CREATE_SIDEBARS, + ); if ( !messageInfo.id || @@ -1425,11 +1429,6 @@ messageCreatorRelationship && relationshipBlockedInEitherDirection(messageCreatorRelationship); - const hasCreateSidebarsPermission = threadHasPermission( - threadInfo, - threadPermissions.CREATE_SIDEBARS, - ); - return hasCreateSidebarsPermission && !creatorRelationshipHasBlock; }