Hide button to chat with yourself

Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1258
This commit is contained in:
Alex Gleason 2022-12-18 12:58:19 -06:00
parent f955691d01
commit 26cb4b1029
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -526,11 +526,11 @@ const Header: React.FC<IHeader> = ({ account }) => {
}; };
const renderMessageButton = () => { const renderMessageButton = () => {
if (features.chatsWithFollowers) { // Truth Social if (!ownAccount || !account || account.id === ownAccount?.id) {
if (!ownAccount || !account || account.id === ownAccount?.id) { return null;
return null; }
}
if (features.chatsWithFollowers) { // Truth Social
const canChat = account.relationship?.followed_by; const canChat = account.relationship?.followed_by;
if (!canChat) { if (!canChat) {
return null; return null;