Fix backport

Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
Louis Chemineau 2021-12-13 15:36:45 +01:00
parent 846929b90d
commit 565da24b4f

View 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;
});