refactor(isContact): rename isContact to isMutualContact
isContact is an old name, isMutualContact is more clear, since we consider only mutual contacts as contacts
This commit is contained in:
parent
6da838c81f
commit
04957186be
|
@ -396,7 +396,7 @@ CExPynn1gWf9bx498P7/nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2I
|
||||||
userName: "annabelle"
|
userName: "annabelle"
|
||||||
pubKey: "0x043a7ed0e8752236a4688563652fd0296453cef00a5dcddbe252dc74f72cc1caa97a2b65e4a1a52d9c30a84c9966beaaaf6b333d659cbdd2e486b443ed1012cf04"
|
pubKey: "0x043a7ed0e8752236a4688563652fd0296453cef00a5dcddbe252dc74f72cc1caa97a2b65e4a1a52d9c30a84c9966beaaaf6b333d659cbdd2e486b443ed1012cf04"
|
||||||
isVerified: true
|
isVerified: true
|
||||||
isContact: true
|
isMutualContact: true
|
||||||
image.source: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAlklEQVR4nOzW0QmDQBAG4SSkl7SUQlJGCrElq9F3QdjjVhh/5nv3cFhY9vUIYQiNITSG0BhCExPynn1gWf9bx498P7/
|
image.source: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAlklEQVR4nOzW0QmDQBAG4SSkl7SUQlJGCrElq9F3QdjjVhh/5nv3cFhY9vUIYQiNITSG0BhCExPynn1gWf9bx498P7/
|
||||||
nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2ImYgiNITTlTdG1nUZ5a92VITQxITFiJmIIjSE0htAYQrMHAAD//+wwFVpz+yqXAAAAAElFTkSuQmCC"
|
nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2ImYgiNITTlTdG1nUZ5a92VITQxITFiJmIIjSE0htAYQrMHAAD//+wwFVpz+yqXAAAAAElFTkSuQmCC"
|
||||||
image.isIdenticon: true
|
image.isIdenticon: true
|
||||||
|
@ -434,7 +434,7 @@ CExPynn1gWf9bx498P7/nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2I
|
||||||
nickName: "Mark Cuban"
|
nickName: "Mark Cuban"
|
||||||
userName: "annabelle"
|
userName: "annabelle"
|
||||||
pubKey: "0x043a7ed0e8752236a4688563652fd0296453cef00a5dcddbe252dc74f72cc1caa97a2b65e4a1a52d9c30a84c9966beaaaf6b333d659cbdd2e486b443ed1012cf04"
|
pubKey: "0x043a7ed0e8752236a4688563652fd0296453cef00a5dcddbe252dc74f72cc1caa97a2b65e4a1a52d9c30a84c9966beaaaf6b333d659cbdd2e486b443ed1012cf04"
|
||||||
isContact: true
|
isMutualContact: true
|
||||||
image.source: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAlklEQVR4nOzW0QmDQBAG4SSkl7SUQlJGCrElq9F3QdjjVhh/5nv3cFhY9vUIYQiNITSG0BhCExPynn1gWf9bx498P7/
|
image.source: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAlklEQVR4nOzW0QmDQBAG4SSkl7SUQlJGCrElq9F3QdjjVhh/5nv3cFhY9vUIYQiNITSG0BhCExPynn1gWf9bx498P7/
|
||||||
nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2ImYgiNITTlTdG1nUZ5a92VITQxITFiJmIIjSE0htAYQrMHAAD//+wwFVpz+yqXAAAAAElFTkSuQmCC"
|
nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2ImYgiNITTlTdG1nUZ5a92VITQxITFiJmIIjSE0htAYQrMHAAD//+wwFVpz+yqXAAAAAElFTkSuQmCC"
|
||||||
image.isIdenticon: true
|
image.isIdenticon: true
|
||||||
|
|
|
@ -272,7 +272,7 @@ StatusAppThreePanelLayout {
|
||||||
pubKey: model.pubKey
|
pubKey: model.pubKey
|
||||||
isVerified: model.isVerified
|
isVerified: model.isVerified
|
||||||
isUntrustworthy: model.isUntrustworthy
|
isUntrustworthy: model.isUntrustworthy
|
||||||
isContact: model.isContact
|
isMutualContact: model.isMutualContact
|
||||||
image.source: model.icon
|
image.source: model.icon
|
||||||
image.isIdenticon: false
|
image.isIdenticon: false
|
||||||
status: model.onlineStatus
|
status: model.onlineStatus
|
||||||
|
|
|
@ -848,7 +848,7 @@ CExPynn1gWf9bx498P7/nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2I
|
||||||
pubKey: "0x043a7ed0e8752236a4688563652fd0296453cef00a5dcddbe252dc74f72cc1caa97a2b65e4a1a52d9c30a84c9966beaaaf6b333d659cbdd2e486b443ed1012cf04"
|
pubKey: "0x043a7ed0e8752236a4688563652fd0296453cef00a5dcddbe252dc74f72cc1caa97a2b65e4a1a52d9c30a84c9966beaaaf6b333d659cbdd2e486b443ed1012cf04"
|
||||||
isVerified: true
|
isVerified: true
|
||||||
isUntrustworthy: false
|
isUntrustworthy: false
|
||||||
isContact: true
|
isMutualContact: true
|
||||||
onlineStatus: 1
|
onlineStatus: 1
|
||||||
icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAlklEQVR4nOzW0QmDQBAG4SSkl7SUQlJGCrElq9F3QdjjVhh/5nv3cFhY9vUIYQiNITSG0BhCExPynn1gWf9bx498P7/
|
icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAlklEQVR4nOzW0QmDQBAG4SSkl7SUQlJGCrElq9F3QdjjVhh/5nv3cFhY9vUIYQiNITSG0BhCExPynn1gWf9bx498P7/
|
||||||
nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2ImYgiNITTlTdG1nUZ5a92VITQxITFiJmIIjSE0htAYQrMHAAD//+wwFVpz+yqXAAAAAElFTkSuQmCC"
|
nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2ImYgiNITTlTdG1nUZ5a92VITQxITFiJmIIjSE0htAYQrMHAAD//+wwFVpz+yqXAAAAAElFTkSuQmCC"
|
||||||
|
@ -860,7 +860,7 @@ CExPynn1gWf9bx498P7/nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2I
|
||||||
pubKey: "0x043a7ed78362567894688563652fd0296453cef00a5dcddbe252dc74f72cc1caa97a2b65e4a1a52d9c30a84c9966beaaaf6b333d659cbdd2e486b443ed1012cf04"
|
pubKey: "0x043a7ed78362567894688563652fd0296453cef00a5dcddbe252dc74f72cc1caa97a2b65e4a1a52d9c30a84c9966beaaaf6b333d659cbdd2e486b443ed1012cf04"
|
||||||
isVerified: false
|
isVerified: false
|
||||||
isUntrustworthy: true
|
isUntrustworthy: true
|
||||||
isContact: false
|
isMutualContact: false
|
||||||
onlineStatus: 0
|
onlineStatus: 0
|
||||||
icon: ""
|
icon: ""
|
||||||
isAdmin: false
|
isAdmin: false
|
||||||
|
@ -871,7 +871,7 @@ CExPynn1gWf9bx498P7/nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2I
|
||||||
pubKey: "0x043a7ed0e8752236a4688563652fd0296453cef00a5dcddbe252dc74f72cc1caa97a2b65e4a1a52d9c30a84c9966beaaaf6b333d659cbdd2e486dsfkjghyu2cf04"
|
pubKey: "0x043a7ed0e8752236a4688563652fd0296453cef00a5dcddbe252dc74f72cc1caa97a2b65e4a1a52d9c30a84c9966beaaaf6b333d659cbdd2e486dsfkjghyu2cf04"
|
||||||
isVerified: false
|
isVerified: false
|
||||||
isUntrustworthy: false
|
isUntrustworthy: false
|
||||||
isContact: false
|
isMutualContact: false
|
||||||
onlineStatus: 1
|
onlineStatus: 1
|
||||||
isAdmin: false
|
isAdmin: false
|
||||||
icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAiElEQVR4nOzXUQpAQBRGYWQvLNAyLJDV8C5qpiGnv/M9al5Ot27X0IUwhMYQGkNoDKGJCRlLH67bftx9X+ap/+P9VcxEDK
|
icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAiElEQVR4nOzXUQpAQBRGYWQvLNAyLJDV8C5qpiGnv/M9al5Ot27X0IUwhMYQGkNoDKGJCRlLH67bftx9X+ap/+P9VcxEDK
|
||||||
|
@ -883,7 +883,7 @@ CExPynn1gWf9bx498P7/nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2I
|
||||||
pubKey: "0x043a7ed0e8752236a4688563652fd0296453cef00a5dcddbe252dc79872cc1caa97a2b65e4a1a52d9c30a84c9966beaaaf6b333d659cbdd2e486b443ed1012cf04"
|
pubKey: "0x043a7ed0e8752236a4688563652fd0296453cef00a5dcddbe252dc79872cc1caa97a2b65e4a1a52d9c30a84c9966beaaaf6b333d659cbdd2e486b443ed1012cf04"
|
||||||
isVerified: false
|
isVerified: false
|
||||||
isUntrustworthy: true
|
isUntrustworthy: true
|
||||||
isContact: true
|
isMutualContact: true
|
||||||
onlineStatus: 0
|
onlineStatus: 0
|
||||||
icon: ""
|
icon: ""
|
||||||
isAdmin: false
|
isAdmin: false
|
||||||
|
|
|
@ -53,10 +53,10 @@ StatusListItem {
|
||||||
*/
|
*/
|
||||||
property string pubKey: ""
|
property string pubKey: ""
|
||||||
/*!
|
/*!
|
||||||
\qmlproperty string StatusMemberListItem::isContact
|
\qmlproperty string StatusMemberListItem::isMutualContact
|
||||||
This property holds if the member represented is contact.
|
This property holds if the member represented is contact.
|
||||||
*/
|
*/
|
||||||
property bool isContact: false
|
property bool isMutualContact: false
|
||||||
/*!
|
/*!
|
||||||
\qmlproperty string StatusMemberListItem::isVerified
|
\qmlproperty string StatusMemberListItem::isVerified
|
||||||
This property holds if the member represented is verified contact.
|
This property holds if the member represented is verified contact.
|
||||||
|
@ -111,7 +111,7 @@ StatusListItem {
|
||||||
// root object settings:
|
// root object settings:
|
||||||
title: (root.nickName === "") ? root.userName : root.nickName
|
title: (root.nickName === "") ? root.userName : root.nickName
|
||||||
statusListItemTitleIcons.sourceComponent: StatusContactVerificationIcons {
|
statusListItemTitleIcons.sourceComponent: StatusContactVerificationIcons {
|
||||||
isMutualContact: root.isContact
|
isMutualContact: root.isMutualContact
|
||||||
trustIndicator: {
|
trustIndicator: {
|
||||||
if (root.isVerified) return StatusContactVerificationIcons.TrustedType.Verified
|
if (root.isVerified) return StatusContactVerificationIcons.TrustedType.Verified
|
||||||
else if (root.isUntrustworthy) return StatusContactVerificationIcons.TrustedType.Untrustworthy
|
else if (root.isUntrustworthy) return StatusContactVerificationIcons.TrustedType.Untrustworthy
|
||||||
|
|
|
@ -177,7 +177,7 @@ Item {
|
||||||
"localNickname": entry.localNickname,
|
"localNickname": entry.localNickname,
|
||||||
"isVerified": entry.isVerified,
|
"isVerified": entry.isVerified,
|
||||||
"isUntrustworthy": entry.isUntrustworthy,
|
"isUntrustworthy": entry.isUntrustworthy,
|
||||||
"isContact": entry.isMutualContact,
|
"isMutualContact": entry.isMutualContact,
|
||||||
"ringSpecModel": entry.ringSpecModel,
|
"ringSpecModel": entry.ringSpecModel,
|
||||||
"icon": entry.icon,
|
"icon": entry.icon,
|
||||||
"onlineStatus": entry.onlineStatus,
|
"onlineStatus": entry.onlineStatus,
|
||||||
|
@ -409,7 +409,7 @@ Item {
|
||||||
pubKey: root.compressedKeyGetter(model.pubKey)
|
pubKey: root.compressedKeyGetter(model.pubKey)
|
||||||
isVerified: model.isVerified
|
isVerified: model.isVerified
|
||||||
isUntrustworthy: model.isUntrustworthy
|
isUntrustworthy: model.isUntrustworthy
|
||||||
isContact: model.isContact
|
isMutualContact: model.isMutualContact
|
||||||
image.source: model.icon
|
image.source: model.icon
|
||||||
image.isIdenticon: false
|
image.isIdenticon: false
|
||||||
icon.color: Theme.palette.userCustomizationColors[root.colorIdForPubkeyGetter(model.pubKey)]
|
icon.color: Theme.palette.userCustomizationColors[root.colorIdForPubkeyGetter(model.pubKey)]
|
||||||
|
|
Loading…
Reference in New Issue