diff --git a/src/contactrequest.cpp b/src/contactrequest.cpp index 448b05ad655a4f23f3fd054c125f8b696b5ec20c..d1e0e0935f073e23c60cb23613334fb4118f8088 100644 --- a/src/contactrequest.cpp +++ b/src/contactrequest.cpp @@ -111,7 +111,7 @@ bool ContactRequest::discard() void ContactRequest::block() { - ConfigurationManager::instance().removeContact(d_ptr->m_pAccount->id(), d_ptr->m_pCertificate->remoteId()); + ConfigurationManager::instance().removeContact(d_ptr->m_pAccount->id(), d_ptr->m_pCertificate->remoteId(), true); emit requestBlocked(); } diff --git a/src/qtwrapper/configurationmanager_wrap.h b/src/qtwrapper/configurationmanager_wrap.h index 07ba9c82cc9c06be18c7e7999c84ad3c58390851..35f330ef13dc872d8531d7fd8177f708a29d2290 100644 --- a/src/qtwrapper/configurationmanager_wrap.h +++ b/src/qtwrapper/configurationmanager_wrap.h @@ -647,9 +647,9 @@ public Q_SLOTS: // METHODS DRing::sendTrustRequest(accountId.toStdString(), from.toStdString(), raw); } - void removeContact(const QString &accountId, const QString &uri) + void removeContact(const QString &accountId, const QString &uri, bool ban) { - DRing::removeContact(accountId.toStdString(), uri.toStdString()); + DRing::removeContact(accountId.toStdString(), uri.toStdString(), ban); } uint64_t sendTextMessage(const QString& accountId, const QString& to, const QMap<QString,QString>& payloads)