Skip to content

Commit

Permalink
Nextcloud don't search if string is less then 2 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Oct 19, 2022
1 parent a0b4517 commit 7211869
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions integrations/nextcloud/snappymail/lib/Search/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public function getOrder(string $route, array $routeParameters): int
public function search(IUser $user, ISearchQuery $query): SearchResult
{
$result = [];
if (1 < \strlen(\trim($query->getTerm()))) {
return SearchResult::complete($this->getName(), $result);
}
SnappyMailHelper::startApp();
$oActions = \RainLoop\Api::Actions();
// $oAccount = $oActions->getMainAccountFromToken(false); // Issue: when account switched, wrong email is shown
Expand Down

0 comments on commit 7211869

Please sign in to comment.