Skip to content

Commit 6db8e45

Browse files
Fix participant name format (#8203)
Signed-off-by: Kristina Fefelova <[email protected]>
1 parent 1158d8d commit 6db8e45

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

plugins/love-resources/src/components/ParticipantsList.svelte

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import { Avatar, personByIdStore } from '@hcengineering/contact-resources'
1717
import { ParticipantInfo } from '@hcengineering/love'
1818
import { Scroller } from '@hcengineering/ui'
19+
import { formatName } from '@hcengineering/contact'
1920
2021
export let items: (ParticipantInfo & { onclick?: (e: MouseEvent) => void })[]
2122
</script>
@@ -36,7 +37,7 @@
3637
person={$personByIdStore.get(participant.person)}
3738
/>
3839
</div>
39-
{participant.name}
40+
{formatName(participant.name)}
4041
</div>
4142
{/each}
4243
</Scroller>

plugins/love-resources/src/components/RoomButton.svelte

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import { Avatar, personByIdStore } from '@hcengineering/contact-resources'
1818
import { tooltip, deviceOptionsStore as deviceInfo, checkAdaptiveMatching } from '@hcengineering/ui'
1919
import { ParticipantInfo } from '@hcengineering/love'
20+
import { formatName } from '@hcengineering/contact'
2021
import ParticipantsList from './ParticipantsList.svelte'
2122
2223
export let label: string
@@ -61,7 +62,7 @@
6162
<div class="hulyStatusBarButton-icons">
6263
{#each participants as participant (participant._id)}
6364
<div
64-
use:tooltip={{ label: getEmbeddedLabel(participant.name), direction: 'bottom' }}
65+
use:tooltip={{ label: getEmbeddedLabel(formatName(participant.name)), direction: 'bottom' }}
6566
on:click={participant.onclick}
6667
>
6768
<Avatar

0 commit comments

Comments
 (0)