Fixed generated avatar for SIP URIs without username

This commit is contained in:
Sylvain Berfini 2025-08-04 17:12:05 +02:00
parent bcc384ecef
commit 3bfef64ef8

View file

@ -45,7 +45,7 @@ class ConversationContactOrSuggestionModel
?: if (friend != null) {
friend.name ?: LinphoneUtils.getDisplayName(address)
} else {
address.username.orEmpty()
address.username ?: address.domain.orEmpty()
}
val sipUri = address.asStringUriOnly()