* Mail: improve performace by skiping search for avatar images in contacts in favor of loading them when they become visible

fix regular expression
This commit is contained in:
ralf 2023-06-28 07:29:38 +02:00
parent 2c6120b705
commit ef06967f85

View File

@ -200,7 +200,7 @@ export class Et2Avatar extends Et2Widget(SlotMixin(SlAvatar)) implements et2_IDe
let oldContactId = this._contactId;
this._contactId = _contactId;
// if our image (incl. cache-buster) already includes the correct id, use that one
if(!this.image || !this.image.match("(&|\\?)contact_id=" + parsedId + "(&|\\$)"))
if(!this.image || !this.image.match("(&|\\?)" + id + "=" + encodeURIComponent(parsedId) + "(&|$)"))
{
params[id] = parsedId;
this.image = egw.link('/api/avatar.php', params);