Skip to content

Commit f01c2e1

Browse files
committed
Fix contact photos
Signed-off-by: Christopher Ng <chrng8@gmail.com>
1 parent 69ef1bc commit f01c2e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/private/Contacts/ContactsMenu/ContactsStore.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ public function findOne(IUser $user, int $shareType, string $shareWith): ?IEntry
284284
private function contactArrayToEntry(array $contact): Entry {
285285
$entry = new Entry();
286286

287-
if (isset($contact['UID'])) {
288-
$uid = $contact['UID'];
287+
$uid = $contact['X-NEXTCLOUD-UID'] ?: $contact['UID'];
288+
if (isset($uid)) {
289289
$entry->setId($uid);
290290
$avatar = $this->urlGenerator->linkToRouteAbsolute('core.avatar.getAvatar', ['userId' => $uid, 'size' => 64]);
291291
$entry->setAvatar($avatar);

0 commit comments

Comments
 (0)