mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 03:18:07 +00:00
fix #LINQT-1799 default contact avatar
This commit is contained in:
parent
5911cce057
commit
d3360cdbf8
1 changed files with 1 additions and 6 deletions
|
|
@ -176,14 +176,9 @@ ListView {
|
|||
anchors.bottomMargin: Math.round(9 * DefaultStyle.dp)
|
||||
spacing: Math.round(10 * DefaultStyle.dp)
|
||||
Avatar {
|
||||
id: historyAvatar
|
||||
property var contactObj: modelData ? UtilsCpp.findFriendByAddress(modelData.core.peerAddress) : null
|
||||
contact: contactObj?.value || null
|
||||
displayNameVal: contact
|
||||
? undefined
|
||||
: modelData
|
||||
? modelData.core.avatarUri
|
||||
: null
|
||||
displayNameVal: modelData.core.avatarUri
|
||||
secured: modelData?.core.isSecured || false
|
||||
Layout.preferredWidth: Math.round(45 * DefaultStyle.dp)
|
||||
Layout.preferredHeight: Math.round(45 * DefaultStyle.dp)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue