Ensure that deleted contacts are really removed

This commit is contained in:
Michael 2020-01-11 17:22:37 +00:00
parent a5895f8623
commit 0225e99d0a
2 changed files with 16 additions and 2 deletions

View file

@ -13,8 +13,7 @@ class RemoveContact {
public static function execute($id) {
// Only delete if the contact is to be deleted
$condition = ['network' => Protocol::PHANTOM, 'id' => $id];
$contact = DBA::selectFirst('contact', ['uid'], $condition);
$contact = DBA::selectFirst('contact', ['uid'], ['deleted' => true]);
if (!DBA::isResult($contact)) {
return;
}