From 26cb4b1029aca69b73fc3539ae4eeeebde82e58b Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 18 Dec 2022 12:58:19 -0600 Subject: [PATCH] Hide button to chat with yourself Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1258 --- app/soapbox/features/account/components/header.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/soapbox/features/account/components/header.tsx b/app/soapbox/features/account/components/header.tsx index ee4304e4e7..e269b16680 100644 --- a/app/soapbox/features/account/components/header.tsx +++ b/app/soapbox/features/account/components/header.tsx @@ -526,11 +526,11 @@ const Header: React.FC = ({ account }) => { }; const renderMessageButton = () => { - if (features.chatsWithFollowers) { // Truth Social - if (!ownAccount || !account || account.id === ownAccount?.id) { - return null; - } + if (!ownAccount || !account || account.id === ownAccount?.id) { + return null; + } + if (features.chatsWithFollowers) { // Truth Social const canChat = account.relationship?.followed_by; if (!canChat) { return null;