refactor(@desktop/contacts): accept contact request from the contact requests popup fixed

This commit is contained in:
Sale Djenic 2022-01-10 10:16:48 +01:00
parent 0e5fbfb567
commit 11fbab0c65
1 changed files with 1 additions and 5 deletions

View File

@ -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: {