diff options
author | Vitor Mattos <vitor@php.rio> | 2023-05-03 06:56:43 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2023-05-03 06:56:43 -0300 |
commit | ee52c47523ade345991e71b730f437cc3ba5abad (patch) | |
tree | 01d1af00cb82443668e6a600666fd186a2b16cbb /lib | |
parent | 0ce23663e3aa5870b5cd0cd2db4e012dc811d40b (diff) |
Return isCustomAvatar=false when the name of room start with an avatar
Didn't make sense to return true because this property is only used to
display the trash icon to remove the customized avatar.
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/AvatarService.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Service/AvatarService.php b/lib/Service/AvatarService.php index dbbaa9c6d..0769a1ad0 100644 --- a/lib/Service/AvatarService.php +++ b/lib/Service/AvatarService.php @@ -226,8 +226,7 @@ class AvatarService { } public function isCustomAvatar(Room $room): bool { - return $room->getAvatar() !== '' - || $this->getFirstCombinedEmoji($room->getName()); + return $room->getAvatar() !== ''; } private function getAvatarPath(Room $room, bool $darkTheme = false): string { |