Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Chat/Notifier.php')
-rw-r--r--lib/Chat/Notifier.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Chat/Notifier.php b/lib/Chat/Notifier.php
index 0b5db45eb..e0e959350 100644
--- a/lib/Chat/Notifier.php
+++ b/lib/Chat/Notifier.php
@@ -341,9 +341,11 @@ class Notifier {
// so they can see the room in their room list and
// the notification can be parsed and links to an existing room,
// where they are a participant of.
+ $user = $this->userManager->get($userId);
$this->participantService->addUsers($room, [[
'actorType' => Attendee::ACTOR_USERS,
'actorId' => $userId,
+ 'displayName' => $user ? $user->getDisplayName() : $userId,
]]);
return true;
}