Fix participant name format (#8141)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina 2025-03-05 20:34:42 +04:00 committed by GitHub
parent 3bac42ac6e
commit 0c9e58f85b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -16,6 +16,7 @@
import { Avatar, personByIdStore } from '@hcengineering/contact-resources'
import { ParticipantInfo } from '@hcengineering/love'
import { Scroller } from '@hcengineering/ui'
import { formatName } from '@hcengineering/contact'
export let items: (ParticipantInfo & { onclick?: (e: MouseEvent) => void })[]
</script>
@ -36,7 +37,7 @@
person={$personByIdStore.get(participant.person)}
/>
</div>
{participant.name}
{formatName(participant.name)}
</div>
{/each}
</Scroller>

View File

@ -17,6 +17,7 @@
import { Avatar, personByIdStore } from '@hcengineering/contact-resources'
import { tooltip, deviceOptionsStore as deviceInfo, checkAdaptiveMatching } from '@hcengineering/ui'
import { ParticipantInfo } from '@hcengineering/love'
import { formatName } from '@hcengineering/contact'
import ParticipantsList from './ParticipantsList.svelte'
export let label: string
@ -61,7 +62,7 @@
<div class="hulyStatusBarButton-icons">
{#each participants as participant (participant._id)}
<div
use:tooltip={{ label: getEmbeddedLabel(participant.name), direction: 'bottom' }}
use:tooltip={{ label: getEmbeddedLabel(formatName(participant.name)), direction: 'bottom' }}
on:click={participant.onclick}
>
<Avatar