From b35d95da5299ccce9ad79661cf384d3bab514ca6 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 25 Sep 2021 08:47:39 +0000 Subject: dismiss deleted xchans in query --- Zotlabs/Widget/Messages.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Zotlabs/Widget/Messages.php') diff --git a/Zotlabs/Widget/Messages.php b/Zotlabs/Widget/Messages.php index 22662a01d..eb3a07da1 100644 --- a/Zotlabs/Widget/Messages.php +++ b/Zotlabs/Widget/Messages.php @@ -177,8 +177,7 @@ class Messages { stringify_array_elms($recips, true); $query_str = implode(',', $recips); - $xchans = dbq("SELECT DISTINCT xchan_name FROM xchan WHERE $column IN ($query_str)"); - + $xchans = dbq("SELECT DISTINCT xchan_name FROM xchan WHERE $column IN ($query_str) AND xchan_deleted = 0"); foreach($xchans as $xchan) { $recipients .= $xchan['xchan_name'] . ', '; } -- cgit v1.2.3