fix(web): enforce channel read-only and admin delete rules
This commit is contained in:
@@ -611,7 +611,7 @@ export function ChatInfoPanel({ chatId, open, onClose }: Props) {
|
||||
}
|
||||
}}
|
||||
>
|
||||
Leave chat
|
||||
{chat.type === "channel" ? "Leave channel" : "Leave chat"}
|
||||
</button>
|
||||
) : null}
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user