Fixed reply display name when it's one of our messages that has been replied to

This commit is contained in:
Sylvain Berfini 2024-06-06 22:41:33 +02:00
parent 483e88a02d
commit fb75ea344c

View file

@ -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 {