fix(web): enforce channel read-only and admin delete rules

This commit is contained in:
2026-03-08 13:18:52 +03:00
parent 13b5f5b855
commit 18596e6dab
3 changed files with 28 additions and 10 deletions

View File

@@ -611,7 +611,7 @@ export function ChatInfoPanel({ chatId, open, onClose }: Props) {
}
}}
>
Leave chat
{chat.type === "channel" ? "Leave channel" : "Leave chat"}
</button>
) : null}
</>