mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
Display avatar initials from display name of account. Fallback to contact/address.
This commit is contained in:
parent
4f3e29ba57
commit
23b961d681
1 changed files with 6 additions and 4 deletions
|
|
@ -24,10 +24,12 @@ Loader{
|
|||
: ''
|
||||
readonly property string address: SettingsCpp.onlyDisplaySipUriUsername ? UtilsCpp.getUsername(_address) : _address
|
||||
property var displayNameObj: UtilsCpp.getDisplayName(_address)
|
||||
property string displayNameVal: contact
|
||||
? contact.core.displayName
|
||||
: displayNameObj
|
||||
? displayNameObj.value
|
||||
property string displayNameVal: account && account.core.displayName
|
||||
? account.core.displayName
|
||||
: contact && contact.core.displayName
|
||||
? contact.core.displayName
|
||||
: displayNameObj
|
||||
? displayNameObj.value
|
||||
: ""
|
||||
property bool haveAvatar: (account && account.core?.pictureUri || false)
|
||||
|| (contact && contact.core.pictureUri)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue