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

This commit is contained in:
G30 authored and GitHub committed 2026-10-16 03:20:26 +04:00
1 parent 597b00a547
commit 493b10630b
1 file changed
+1 -1
@@ -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"