Merge pull request #14 from archem-team/bug/channel-permission

Message box Permission
This commit is contained in:
teamabron
2025-01-16 18:32:35 +03:30
committed by GitHub

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>