mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
* 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:
parent
2c6120b705
commit
ef06967f85
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user