]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix backport 30248/head
authorLouis Chemineau <louis@chmn.me>
Mon, 13 Dec 2021 14:36:45 +0000 (15:36 +0100)
committerLouis Chemineau <louis@chmn.me>
Mon, 13 Dec 2021 14:36:45 +0000 (15:36 +0100)
Signed-off-by: Louis Chemineau <louis@chmn.me>
lib/private/Contacts/ContactsMenu/ContactsStore.php

index 5aa2c5ab1aaca1d5a35bc16ec76b547b7f666791..94531d2bf554d6d6b6263dfc6fe96af4fc80c5a3 100644 (file)
@@ -247,7 +247,9 @@ class ContactsStore implements IContactsStore {
                }
 
                $userId = $user->getUID();
-               $allContacts = $this->contactsManager->search($shareWith, $filter);
+               $allContacts = $this->contactsManager->search($shareWith, $filter, [
+                       'strict_search' => true,
+               ]);
                $contacts = array_filter($allContacts, function ($contact) use ($userId) {
                        return $contact['UID'] !== $userId;
                });