summaryrefslogtreecommitdiffstats
path: root/lib/private/Collaboration
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-11-24 12:18:53 +0100
committerJulius Härtl <jus@bitgrid.net>2021-12-08 09:08:54 +0100
commit7b76253aee280c9664e03e9dc982c631c6b42c5a (patch)
tree87589398b3f22b2482d68842174b37ccb7bbc5b0 /lib/private/Collaboration
parent0e665e064686dee3b588db0bfd07791968866761 (diff)
downloadnextcloud-server-7b76253aee280c9664e03e9dc982c631c6b42c5a.tar.gz
nextcloud-server-7b76253aee280c9664e03e9dc982c631c6b42c5a.zip
Do not clear all results when searching from users address books
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Collaboration')
-rw-r--r--lib/private/Collaboration/Collaborators/MailPlugin.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/private/Collaboration/Collaborators/MailPlugin.php b/lib/private/Collaboration/Collaborators/MailPlugin.php
index 7245501a8bf..71e7ec283a1 100644
--- a/lib/private/Collaboration/Collaborators/MailPlugin.php
+++ b/lib/private/Collaboration/Collaborators/MailPlugin.php
@@ -235,10 +235,7 @@ class MailPlugin implements ISearchPlugin {
}
$reachedEnd = true;
- if (!$this->shareeEnumeration) {
- $result['wide'] = [];
- $userResults['wide'] = [];
- } else {
+ if ($this->shareeEnumeration) {
$reachedEnd = (count($result['wide']) < $offset + $limit) &&
(count($userResults['wide']) < $offset + $limit);