mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-09-12 16:14:27 +08: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]) {
|
if (msg?.from?.[0]) {
|
||||||
let url = getAvatar(msg),
|
let url = getAvatar(msg),
|
||||||
fn = url=>{element.src = url};
|
fn = url=>{element.src = url};
|
||||||
|
element.onerror = ()=>{
|
||||||
|
element.onerror = null;
|
||||||
|
setIdenticon(msg.from[0], fn);
|
||||||
|
};
|
||||||
if (url) {
|
if (url) {
|
||||||
fn(url);
|
fn(url);
|
||||||
} else if (msg.avatar?.startsWith('data:')) {
|
} else if (msg.avatar?.startsWith('data:')) {
|
||||||
|
|
|
@ -10,8 +10,8 @@ class AvatarsPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
NAME = 'Avatars',
|
NAME = 'Avatars',
|
||||||
AUTHOR = 'SnappyMail',
|
AUTHOR = 'SnappyMail',
|
||||||
URL = 'https://snappymail.eu/',
|
URL = 'https://snappymail.eu/',
|
||||||
VERSION = '1.19',
|
VERSION = '1.20',
|
||||||
RELEASE = '2024-07-08',
|
RELEASE = '2024-08-26',
|
||||||
REQUIRED = '2.33.0',
|
REQUIRED = '2.33.0',
|
||||||
CATEGORY = 'Contacts',
|
CATEGORY = 'Contacts',
|
||||||
LICENSE = 'MIT',
|
LICENSE = 'MIT',
|
||||||
|
|
Loading…
Add table
Reference in a new issue