Fix direct title (#9721)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina
2025-08-26 13:26:56 +04:00
committed by GitHub
parent 40a72af7ee
commit ff4cce9248
4 changed files with 51 additions and 30 deletions
@@ -97,17 +97,17 @@
</defs>
</svg>
<Avatar
person={persons[0]}
person={persons.find((it) => it._id !== me) ?? persons[0]}
size={avatarSize}
name={persons[0].name}
showStatus={false}
clipPath="url(#direct-count-marker)"
/>
<span class="persons-count {avatarSize}">
{#if persons.length > 9}
{#if persons.length > 10}
9+
{:else}
{persons.length}
{persons.length - 1}
{/if}
</span>
</span>