mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 09:02:45 +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]) {
|
||||
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:')) {
|
||||
|
|
|
@ -10,8 +10,8 @@ class AvatarsPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
NAME = 'Avatars',
|
||||
AUTHOR = 'SnappyMail',
|
||||
URL = 'https://snappymail.eu/',
|
||||
VERSION = '1.19',
|
||||
RELEASE = '2024-07-08',
|
||||
VERSION = '1.20',
|
||||
RELEASE = '2024-08-26',
|
||||
REQUIRED = '2.33.0',
|
||||
CATEGORY = 'Contacts',
|
||||
LICENSE = 'MIT',
|
||||
|
|
Loading…
Reference in a new issue