Skip to content
Snippets Groups Projects
Commit 39a27cd0 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

contact_list: removeContact should always remove the trust request

The is no reason to keep the trust request after a removeContact.

Change-Id: I1aad35e7ad6ef92cbd13fdf65283c647a8673e94
parent 6daf7bed
Branches
No related tags found
No related merge requests found
...@@ -119,7 +119,7 @@ ContactList::removeContact(const dht::InfoHash& h, bool ban) ...@@ -119,7 +119,7 @@ ContactList::removeContact(const dht::InfoHash& h, bool ban)
trust_.setCertificateStatus(uri, trust_.setCertificateStatus(uri,
ban ? tls::TrustStore::PermissionStatus::BANNED ban ? tls::TrustStore::PermissionStatus::BANNED
: tls::TrustStore::PermissionStatus::UNDEFINED); : tls::TrustStore::PermissionStatus::UNDEFINED);
if (ban and trustRequests_.erase(h) > 0) if (trustRequests_.erase(h) > 0)
saveTrustRequests(); saveTrustRequests();
saveContacts(); saveContacts();
#ifdef ENABLE_PLUGIN #ifdef ENABLE_PLUGIN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment