From 6a1a9485cfea2916ce1daddc2e6bd2d4dedcc841 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Mon, 13 Dec 2021 15:35:05 +0100 Subject: [PATCH] Fix backport Signed-off-by: Louis Chemineau --- lib/private/Contacts/ContactsMenu/ContactsStore.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/private/Contacts/ContactsMenu/ContactsStore.php b/lib/private/Contacts/ContactsMenu/ContactsStore.php index 77cca794d6b..3d8bc15eba7 100644 --- a/lib/private/Contacts/ContactsMenu/ContactsStore.php +++ b/lib/private/Contacts/ContactsMenu/ContactsStore.php @@ -245,7 +245,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; });