refactor(@desktop/contacts): accept contact request from the contact requests popup fixed
This commit is contained in:
parent
0e5fbfb567
commit
11fbab0c65
|
@ -16,10 +16,7 @@ ModalPopup {
|
||||||
id: popup
|
id: popup
|
||||||
|
|
||||||
property var store
|
property var store
|
||||||
// Important:
|
|
||||||
// We're here in case of ChatSection
|
|
||||||
// This module is set from `ChatLayout` (each `ChatLayout` has its own chatSectionModule)
|
|
||||||
property var chatSectionModule
|
|
||||||
//% "Contact requests"
|
//% "Contact requests"
|
||||||
title: qsTrId("contact-requests")
|
title: qsTrId("contact-requests")
|
||||||
|
|
||||||
|
@ -46,7 +43,6 @@ ModalPopup {
|
||||||
blockContactConfirmationDialog.open()
|
blockContactConfirmationDialog.open()
|
||||||
}
|
}
|
||||||
onAcceptClicked: {
|
onAcceptClicked: {
|
||||||
chatSectionModule.createOneToOneChat(model.pubKey, "")
|
|
||||||
popup.store.acceptContactRequest(model.pubKey)
|
popup.store.acceptContactRequest(model.pubKey)
|
||||||
}
|
}
|
||||||
onDeclineClicked: {
|
onDeclineClicked: {
|
||||||
|
|
Loading…
Reference in New Issue