From 632726ef1ccb048406336a811db6ee90a921eba0 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 11 Aug 2022 12:01:56 -0500 Subject: [PATCH] Header: hide message button again (for now) --- .../features/account/components/header.tsx | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/app/soapbox/features/account/components/header.tsx b/app/soapbox/features/account/components/header.tsx index cb5254aac..f0a6d9033 100644 --- a/app/soapbox/features/account/components/header.tsx +++ b/app/soapbox/features/account/components/header.tsx @@ -654,33 +654,33 @@ const Header: React.FC = ({ account }) => { return info; }; - const renderMessageButton = () => { - if (!ownAccount || !account || account.id === ownAccount?.id) { - return null; - } + // const renderMessageButton = () => { + // if (!ownAccount || !account || account.id === ownAccount?.id) { + // return null; + // } - const canChat = account.getIn(['pleroma', 'accepts_chat_messages']) === true; + // const canChat = account.getIn(['pleroma', 'accepts_chat_messages']) === true; - if (canChat) { - return ( - - ); - } else { - return ( - - ); - } - }; + // if (canChat) { + // return ( + // + // ); + // } else { + // return ( + // + // ); + // } + // }; const renderShareButton = () => { const canShare = 'share' in navigator; @@ -796,7 +796,7 @@ const Header: React.FC = ({ account }) => { )} {renderShareButton()} - {renderMessageButton()} + {/* {renderMessageButton()} */}