diff --git a/plugins/avatars/avatars.js b/plugins/avatars/avatars.js index 8aef7fa69..464c4f1cc 100644 --- a/plugins/avatars/avatars.js +++ b/plugins/avatars/avatars.js @@ -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:')) { diff --git a/plugins/avatars/index.php b/plugins/avatars/index.php index a1a5b921f..4baae52ce 100644 --- a/plugins/avatars/index.php +++ b/plugins/avatars/index.php @@ -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',