Message box Permission

This commit is contained in:
TeamAbronDev
2025-01-16 18:30:56 +03:30
parent 6325994611
commit 0a67ab3e5f

View File

@@ -257,8 +257,10 @@ export default observer(({ channel }: Props) => {
</Base>
);
}
console.log(channel)
if (!channel.havePermission("SendMessage") && channel.recipient?.relationship == "Blocked" || channel.recipient?.relationship == "BlockedOther"){
console.log(channel) //|| channel.channel_type != "DirectMessage"
if (channel.channel_type != "SavedMessages")
if (!channel.havePermission("SendMessage") && channel.channel_type == "TextChannel" || channel.recipient?.relationship == "Blocked" || channel.recipient?.relationship == "BlockedOther"){
return (
<Base>
<Blocked>