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)
|
anchors.bottomMargin: Math.round(9 * DefaultStyle.dp)
|
||||||
spacing: Math.round(10 * DefaultStyle.dp)
|
spacing: Math.round(10 * DefaultStyle.dp)
|
||||||
Avatar {
|
Avatar {
|
||||||
id: historyAvatar
|
|
||||||
property var contactObj: modelData ? UtilsCpp.findFriendByAddress(modelData.core.peerAddress) : null
|
property var contactObj: modelData ? UtilsCpp.findFriendByAddress(modelData.core.peerAddress) : null
|
||||||
contact: contactObj?.value || null
|
contact: contactObj?.value || null
|
||||||
displayNameVal: contact
|
displayNameVal: modelData.core.avatarUri
|
||||||
? undefined
|
|
||||||
: modelData
|
|
||||||
? modelData.core.avatarUri
|
|
||||||
: null
|
|
||||||
secured: modelData?.core.isSecured || false
|
secured: modelData?.core.isSecured || false
|
||||||
Layout.preferredWidth: Math.round(45 * DefaultStyle.dp)
|
Layout.preferredWidth: Math.round(45 * DefaultStyle.dp)
|
||||||
Layout.preferredHeight: Math.round(45 * DefaultStyle.dp)
|
Layout.preferredHeight: Math.round(45 * DefaultStyle.dp)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue