From 4db68c7f7d3373b6c8927ef5dd5819d40fbadd5d Mon Sep 17 00:00:00 2001 From: Louis Chmn Date: Thu, 25 Jun 2026 13:59:50 +0200 Subject: [PATCH] fix: Update display name in User object This is breaking other consumers of the user object as they will use the old display name. This was an issue in Talk where they cache the display names. Signed-off-by: Louis Chmn --- lib/UserBackend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/UserBackend.php b/lib/UserBackend.php index 4110bcddc..ac07114ec 100644 --- a/lib/UserBackend.php +++ b/lib/UserBackend.php @@ -541,7 +541,7 @@ public function updateAttributes(string $uid): void { $currentDisplayname = $this->getDisplayName($uid); if ($newDisplayname !== null && $currentDisplayname !== $newDisplayname) { - $this->setDisplayName($uid, $newDisplayname); + $user->setDisplayName($newDisplayname); $this->logger->debug('Display name updated', ['app' => 'user_saml', 'user' => $user->getUID()]); $this->eventDispatcher->dispatchTyped(new UserChangedEvent($user, 'displayName', $newDisplayname, $currentDisplayname)); $this->logger->debug('Display name update event dispatched', ['app' => 'user_saml', 'user' => $user->getUID()]);