Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix backport
Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge committed Dec 13, 2021
commit 6a1a9485cfea2916ce1daddc2e6bd2d4dedcc841
4 changes: 3 additions & 1 deletion lib/private/Contacts/ContactsMenu/ContactsStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ public function findOne(IUser $user, $shareType, $shareWith) {
}

$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;
});
Expand Down