diff --git a/lib/private/Federation/CloudIdManager.php b/lib/private/Federation/CloudIdManager.php index 43bc0d86a38f2..d99fc3505201c 100644 --- a/lib/private/Federation/CloudIdManager.php +++ b/lib/private/Federation/CloudIdManager.php @@ -110,7 +110,8 @@ public function getCloudId(string $user, string $remote): ICloudId { $host = $fixedRemote; } $id = $user . '@' . $remote; - return new CloudId($id, $user, $fixedRemote, $this->getDisplayNameFromContact($id)); + $displayName = $this->getDisplayNameFromContact($user . '@' . $host); + return new CloudId($id, $user, $fixedRemote, $displayName); } /**