fix(ui/modules/Linphone/Chat/IncomingMessage): display correctly avatar if exists

This commit is contained in:
Ronan Abhamon 2017-05-19 15:17:40 +02:00
parent 13c74be26e
commit 52eb9f2c07

View file

@ -20,7 +20,7 @@ RowLayout {
Avatar {
anchors.centerIn: parent
height: ChatStyle.entry.message.incoming.avatarSize
image: chat.sipAddressObserver.contact ? chat.sipAddressObserver.contact.avatar : ''
image: chat.sipAddressObserver.contact ? chat.sipAddressObserver.contact.vcard.avatar : ''
username: LinphoneUtils.getContactUsername(chat.sipAddressObserver.contact || proxyModel.sipAddress)
width: ChatStyle.entry.message.incoming.avatarSize