Skip to content

Commit 8688d3d

Browse files
committed
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 <louis@chmn.me>
1 parent 7667132 commit 8688d3d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/UserBackend.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@ public function updateAttributes(string $uid): void {
542542
if ($newDisplayname !== null
543543
&& $currentDisplayname !== $newDisplayname) {
544544
$this->setDisplayName($uid, $newDisplayname);
545+
$user->setDisplayName($newDisplayname);
545546
$this->logger->debug('Display name updated', ['app' => 'user_saml', 'user' => $user->getUID()]);
546547
$this->eventDispatcher->dispatchTyped(new UserChangedEvent($user, 'displayName', $newDisplayname, $currentDisplayname));
547548
$this->logger->debug('Display name update event dispatched', ['app' => 'user_saml', 'user' => $user->getUID()]);

0 commit comments

Comments
 (0)