Use participant device display name in conference if device name is empty

This commit is contained in:
Sylvain Berfini 2025-08-07 16:41:41 +02:00
parent fac6e42c22
commit 8f0f6581b2

View file

@ -42,9 +42,9 @@ class ConferenceParticipantDeviceModel
val avatarModel = coreContext.contactsManager.getContactAvatarModelForAddress(device.address)
val name = avatarModel.contactName ?: device.name ?: LinphoneUtils.getDisplayName(
device.address
)
val name = avatarModel.contactName ?: device.name.orEmpty().ifEmpty {
LinphoneUtils.getDisplayName(device.address)
}
val isMuted = MutableLiveData<Boolean>()