Do not clear all results when searching from users address books

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2021-11-24 12:18:53 +01:00
parent 0e665e0646
commit 7b76253aee
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF

View file

@ -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);