diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-01-10 16:06:44 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-04-23 19:08:16 +0200 |
commit | 6709833dc7248fe448b6b809584d9a2e9546af7b (patch) | |
tree | 10743c9d4fb37d7050e760c4f6a4e502353bed40 /lib/private/Collaboration/Collaborators/MailPlugin.php | |
parent | 3c2dd082640d2429c81639156291cb5978f60eec (diff) | |
download | nextcloud-server-6709833dc7248fe448b6b809584d9a2e9546af7b.tar.gz nextcloud-server-6709833dc7248fe448b6b809584d9a2e9546af7b.zip |
Use paginated search for contacts
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Collaboration/Collaborators/MailPlugin.php')
-rw-r--r-- | lib/private/Collaboration/Collaborators/MailPlugin.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/Collaboration/Collaborators/MailPlugin.php b/lib/private/Collaboration/Collaborators/MailPlugin.php index e387e38c6dc..8266ca6794f 100644 --- a/lib/private/Collaboration/Collaborators/MailPlugin.php +++ b/lib/private/Collaboration/Collaborators/MailPlugin.php @@ -81,8 +81,7 @@ class MailPlugin implements ISearchPlugin { $emailType = new SearchResultType('emails'); // Search in contacts - //@todo Pagination missing - $addressBookContacts = $this->contactsManager->search($search, ['EMAIL', 'FN']); + $addressBookContacts = $this->contactsManager->search($search, ['EMAIL', 'FN'], ['limit' => $limit, 'offset' => $offset]); $lowerSearch = strtolower($search); foreach ($addressBookContacts as $contact) { if (isset($contact['EMAIL'])) { |