diff options
-rw-r--r-- | lib/private/Contacts/ContactsMenu/ContactsStore.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/private/Contacts/ContactsMenu/ContactsStore.php b/lib/private/Contacts/ContactsMenu/ContactsStore.php index 020e8604910..2edb04df926 100644 --- a/lib/private/Contacts/ContactsMenu/ContactsStore.php +++ b/lib/private/Contacts/ContactsMenu/ContactsStore.php @@ -284,8 +284,11 @@ class ContactsStore implements IContactsStore { private function contactArrayToEntry(array $contact): Entry { $entry = new Entry(); - if (isset($contact['id'])) { - $entry->setId($contact['id']); + if (isset($contact['UID'])) { + $entry->setId($contact['UID']); + $uid = $contact['UID']; + $avatar = "/index.php/avatar/$uid/64"; + $entry->setAvatar($avatar); } if (isset($contact['FN'])) { |