fix(ui/modules/Linphone/Contact/Contact): do not display presence if contact is not registered in app

This commit is contained in:
Ronan Abhamon 2016-12-29 11:56:47 +01:00
parent 0e6faf306f
commit 5d5d4fa0e2

View file

@ -48,7 +48,7 @@ Rectangle {
Layout.preferredHeight: ContactStyle.contentHeight
Layout.preferredWidth: ContactStyle.contentHeight
image: _contact && _contact.vcard.avatar
presenceLevel: _contact ? _contact.presenceLevel : Presence.White
presenceLevel: _contact ? _contact.presenceLevel : -1
username: LinphoneUtils.getContactUsername(_contact || _getSipAddress())
}