Hide button to chat with yourself
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1258
This commit is contained in:
parent
f955691d01
commit
26cb4b1029
1 changed files with 4 additions and 4 deletions
|
@ -526,11 +526,11 @@ const Header: React.FC<IHeader> = ({ account }) => {
|
|||
};
|
||||
|
||||
const renderMessageButton = () => {
|
||||
if (features.chatsWithFollowers) { // Truth Social
|
||||
if (!ownAccount || !account || account.id === ownAccount?.id) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (features.chatsWithFollowers) { // Truth Social
|
||||
const canChat = account.relationship?.followed_by;
|
||||
if (!canChat) {
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue