mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-09 18:15:28 +00:00
Merge pull request #14 from archem-team/bug/channel-permission
Message box Permission
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user