Removing a contact request needn't to be one not approved requests

This commit is contained in:
Michael 2019-05-02 20:04:15 +00:00
parent a4dffee5f4
commit 9941c33123
1 changed files with 1 additions and 1 deletions

View File

@ -578,7 +578,7 @@ class Processor
self::switchContact($cid);
if (DBA::exists('contact', ['id' => $cid, 'rel' => Contact::SHARING, 'pending' => true])) {
if (DBA::exists('contact', ['id' => $cid, 'rel' => Contact::SHARING])) {
Contact::remove($cid);
Logger::log('Rejected contact request from contact ' . $cid . ' for user ' . $uid . ' - contact had been removed.', Logger::DEBUG);
} else {