mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Fixed reply display name when it's one of our messages that has been replied to
This commit is contained in:
parent
483e88a02d
commit
fb75ea344c
1 changed files with 2 additions and 3 deletions
|
|
@ -56,9 +56,8 @@ class EventLogModel @WorkerThread constructor(
|
|||
val replyMessage = chatMessage.replyMessage
|
||||
if (replyMessage != null) {
|
||||
val from = replyMessage.fromAddress
|
||||
replyTo = coreContext.contactsManager.findContactByAddress(from)?.name ?: LinphoneUtils.getDisplayName(
|
||||
from
|
||||
)
|
||||
val avatarModel = coreContext.contactsManager.getContactAvatarModelForAddress(from)
|
||||
replyTo = avatarModel.contactName ?: LinphoneUtils.getDisplayName(from)
|
||||
|
||||
LinphoneUtils.getTextDescribingMessage(replyMessage)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue