Issue 9633: Avoid contact lookup in conversation to avoid long loading times
This commit is contained in:
parent
675f54e44f
commit
cd428a2d28
|
@ -324,8 +324,7 @@ function conv_get_blocklist()
|
||||||
$blocklist = [];
|
$blocklist = [];
|
||||||
|
|
||||||
foreach (explode(',', $str_blocked) as $entry) {
|
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);
|
||||||
$cid = Contact::getIdForURL(trim($entry), 0, false, ['url' => trim($entry)]);
|
|
||||||
if (!empty($cid)) {
|
if (!empty($cid)) {
|
||||||
$blocklist[] = $cid;
|
$blocklist[] = $cid;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue