Bugfix: handling services images failed

This commit is contained in:
the-djmaze
2023-11-27 17:05:30 +01:00
parent fdc21f26fc
commit 086f5ebb06
2 changed files with 4 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -10,8 +10,8 @@ class AvatarsPlugin extends \RainLoop\Plugins\AbstractPlugin
NAME = 'Avatars',
AUTHOR = 'SnappyMail',
URL = 'https://snappymail.eu/',
VERSION = '1.11',
RELEASE = '2023-02-23',
VERSION = '1.12',
RELEASE = '2023-11-27',
REQUIRED = '2.25.0',
CATEGORY = 'Contacts',
LICENSE = 'MIT',
@@ -37,7 +37,7 @@ class AvatarsPlugin extends \RainLoop\Plugins\AbstractPlugin
public function JsonMessage(array &$aResponse)
{
if ($icon = $this->JsonAvatar($aResponse['Result'])) {
$aResponse['Result']['Avatar'] = $icon;
$aResponse['Result']['avatar'] = $icon;
}
}
@@ -46,7 +46,7 @@ class AvatarsPlugin extends \RainLoop\Plugins\AbstractPlugin
if (!empty($aResponse['Result']['@Collection'])) {
foreach ($aResponse['Result']['@Collection'] as &$message) {
if ($icon = $this->JsonAvatar($message)) {
$message['Avatar'] = $icon;
$message['avatar'] = $icon;
}
}
}