diff options
author | Louis Chemineau <louis@chmn.me> | 2021-12-13 15:36:45 +0100 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2021-12-13 15:36:45 +0100 |
commit | 565da24b4f9e99f709da500e4e0b31952f2eb515 (patch) | |
tree | ac4f0da72df5482bbfdd5c3a4e3df4b77ea9c296 | |
parent | 846929b90d8d3d2aa668440461a3da06a089b39a (diff) | |
download | nextcloud-server-565da24b4f9e99f709da500e4e0b31952f2eb515.tar.gz nextcloud-server-565da24b4f9e99f709da500e4e0b31952f2eb515.zip |
Fix backport
Signed-off-by: Louis Chemineau <louis@chmn.me>
-rw-r--r-- | lib/private/Contacts/ContactsMenu/ContactsStore.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Contacts/ContactsMenu/ContactsStore.php b/lib/private/Contacts/ContactsMenu/ContactsStore.php index 5aa2c5ab1aa..94531d2bf55 100644 --- a/lib/private/Contacts/ContactsMenu/ContactsStore.php +++ b/lib/private/Contacts/ContactsMenu/ContactsStore.php @@ -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; }); |