mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-06 07:57:02 +03:00
Resolve #1718
This commit is contained in:
parent
59652d2d61
commit
547953eb31
2 changed files with 6 additions and 2 deletions
|
|
@ -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:')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue