Skip to content

Commit

Permalink
Don't load Users from contacts a second time
Browse files Browse the repository at this point in the history
  • Loading branch information
LEDfan committed Dec 13, 2017
1 parent e1740c9 commit c5bc985
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/private/Collaboration/Collaborators/MailPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ public function search($search, $limit, $offset, ISearchResult $searchResult) {
$addressBookContacts = $this->contactsManager->search($search, ['EMAIL', 'FN']);
$lowerSearch = strtolower($search);
foreach ($addressBookContacts as $contact) {
if (isset($contact['isLocalSystemBook'])) {
continue;
}
if (isset($contact['EMAIL'])) {
$emailAddresses = $contact['EMAIL'];
if (!is_array($emailAddresses)) {
Expand Down

0 comments on commit c5bc985

Please sign in to comment.