summaryrefslogtreecommitdiffstats
path: root/lib/Manager.php
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-08-16 11:50:10 +0200
committerJoas Schilling <coding@schilljs.com>2022-08-17 10:31:14 +0200
commit197c14398107c30aac46c08cce4eae8a1e1a672d (patch)
treeb39ac329c018c0b4375fe324b18bed349f951a6b /lib/Manager.php
parent2e2ab821ece62437d21dfb380cfde740644b034d (diff)
Use new OCP api
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'lib/Manager.php')
-rw-r--r--lib/Manager.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Manager.php b/lib/Manager.php
index 4cb44518d..65a6167c6 100644
--- a/lib/Manager.php
+++ b/lib/Manager.php
@@ -988,10 +988,9 @@ class Manager {
$otherParticipant = '';
$userIsParticipant = false;
- $displayNameCache = \OCP\Server::get(\OC\User\DisplayNameCache::class);
foreach ($users as $participantId) {
if ($participantId !== $userId) {
- $otherParticipant = $displayNameCache->getDisplayName($participantId);
+ $otherParticipant = $this->userManager->getDisplayName($participantId);
} else {
$userIsParticipant = true;
}