This commit is contained in:
the-djmaze 2024-08-26 20:45:32 +02:00
parent 59652d2d61
commit 547953eb31
2 changed files with 6 additions and 2 deletions

View file

@ -186,6 +186,10 @@
if (msg?.from?.[0]) {
let url = getAvatar(msg),
fn = url=>{element.src = url};
element.onerror = ()=>{
element.onerror = null;
setIdenticon(msg.from[0], fn);
};
if (url) {
fn(url);
} else if (msg.avatar?.startsWith('data:')) {