Issue 9633: Avoid contact lookup in conversation to avoid long loading times

2022.09-rc
Michael Vogel 2020-12-11 15:16:29 +01:00
rodzic 675f54e44f
commit cd428a2d28
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -324,8 +324,7 @@ function conv_get_blocklist()
$blocklist = [];
foreach (explode(',', $str_blocked) as $entry) {
// The 4th parameter guarantees that there always will be a public contact entry
$cid = Contact::getIdForURL(trim($entry), 0, false, ['url' => trim($entry)]);
$cid = Contact::getIdForURL(trim($entry), 0, false);
if (!empty($cid)) {
$blocklist[] = $cid;
}