mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 01: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>
|
</Base>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
console.log(channel)
|
console.log(channel) //|| channel.channel_type != "DirectMessage"
|
||||||
if (!channel.havePermission("SendMessage") && channel.recipient?.relationship == "Blocked" || channel.recipient?.relationship == "BlockedOther"){
|
if (channel.channel_type != "SavedMessages")
|
||||||
|
if (!channel.havePermission("SendMessage") && channel.channel_type == "TextChannel" || channel.recipient?.relationship == "Blocked" || channel.recipient?.relationship == "BlockedOther"){
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Base>
|
<Base>
|
||||||
<Blocked>
|
<Blocked>
|
||||||
|
|||||||
Reference in New Issue
Block a user