fix(@desktop/profile): Confirmation of contact added not shown on Add Contact Modal
fixes #4072
This commit is contained in:
parent
eee096dda7
commit
1e30872a96
|
@ -255,6 +255,9 @@ Item {
|
||||||
hideBlocked: true
|
hideBlocked: true
|
||||||
searchString: searchBox.text
|
searchString: searchBox.text
|
||||||
|
|
||||||
|
// To show the correct status (added/not added)in the addContactModal.
|
||||||
|
onCountChanged: searchResults.isAddedContact = searchResults.isContactAdded()
|
||||||
|
|
||||||
onContactClicked: {
|
onContactClicked: {
|
||||||
root.store.changeAppSectionBySectionType(Constants.appSection.chat)
|
root.store.changeAppSectionBySectionType(Constants.appSection.chat)
|
||||||
root.store.joinPrivateChat(contact.address)
|
root.store.joinPrivateChat(contact.address)
|
||||||
|
|
|
@ -28,7 +28,7 @@ Item {
|
||||||
property bool resultClickable: true
|
property bool resultClickable: true
|
||||||
property bool addContactEnabled: true
|
property bool addContactEnabled: true
|
||||||
|
|
||||||
property bool isAddedContact: pubKey != "" ? chatsModel.messageView.isAddedContact(pubKey) : false
|
property bool isAddedContact: isContactAdded()
|
||||||
|
|
||||||
signal resultClicked(string pubKey)
|
signal resultClicked(string pubKey)
|
||||||
signal addToContactsButtonClicked(string pubKey)
|
signal addToContactsButtonClicked(string pubKey)
|
||||||
|
@ -41,6 +41,10 @@ Item {
|
||||||
pubKey = ""
|
pubKey = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function isContactAdded() {
|
||||||
|
return pubKey != "" ? chatsModel.messageView.isAddedContact(pubKey) : false
|
||||||
|
}
|
||||||
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
|
|
Loading…
Reference in New Issue