diff --git a/lib/Service/SessionService.php b/lib/Service/SessionService.php index bfe43726d0e..845d4dd5e47 100644 --- a/lib/Service/SessionService.php +++ b/lib/Service/SessionService.php @@ -228,6 +228,6 @@ private function getColorForGuestName(string $guestName = null): string { $guestName = $this->userId ?? $guestName; $uniqueGuestId = !empty($guestName) ? $guestName : $this->secureRandom->generate(12); $color = $this->avatarManager->getGuestAvatar($uniqueGuestId)->avatarBackgroundColor($uniqueGuestId); - return sprintf("#%02x%02x%02x", $color->r, $color->g, $color->b); + return $color->name(); } }