fix: stop offering reactions on a channel the viewer may only read (#30241)

This commit is contained in:
G30 2026-09-21 00:42:32 -04:00 • committed by GitHub
parent b256115fa2
commit 669d37bea1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -595,6 +595,7 @@
})}
>
<button
{disabled}
class="flex items-center gap-1.5 transition rounded-xl px-2 py-1 cursor-pointer {reaction.users
.map((u) => u.id)
.includes($user?.id)
@ -617,7 +618,7 @@
</Tooltip>
{/each}
{#if onReaction}
{#if onReaction && !disabled}
<EmojiPicker
onSubmit={(name) => {
onReaction(name);