fix: hide Delete on replies for people replying in a shared chat (#32480)

This commit is contained in:
G30 2026-10-15 19:20:26 -04:00 • committed by GitHub
parent 597b00a547
commit 493b10630b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1617,7 +1617,7 @@
{/each}
{#if $user?.role === 'admin' || ($user?.permissions?.chat?.delete_message ?? true)}
{#if siblings.length > 1}
{#if (!readOnly || ($user?.role === 'admin' && $config?.features?.enable_admin_chat_access)) && siblings.length > 1}
<Tooltip content={$i18n.t('Delete')} placement="bottom">
<button
type="button"