diff --git a/lib/Search/CurrentMessageSearch.php b/lib/Search/CurrentMessageSearch.php index c515310fb76..f5594a25ecf 100644 --- a/lib/Search/CurrentMessageSearch.php +++ b/lib/Search/CurrentMessageSearch.php @@ -47,14 +47,14 @@ public function getName(): string { /** * @inheritDoc */ - public function getOrder(string $route, array $routeParameters): int { + public function getOrder(string $route, array $routeParameters): ?int { if ($route === 'spreed.Page.showCall') { // In conversation, prefer this search results return -3; } // We are not returning something anyway. - return 999; + return null; } protected function getSublineTemplate(): string { diff --git a/lib/Search/MessageSearch.php b/lib/Search/MessageSearch.php index 3392addc788..abfdcddada3 100644 --- a/lib/Search/MessageSearch.php +++ b/lib/Search/MessageSearch.php @@ -75,7 +75,7 @@ public function getName(): string { /** * @inheritDoc */ - public function getOrder(string $route, array $routeParameters): int { + public function getOrder(string $route, array $routeParameters): ?int { if (strpos($route, Application::APP_ID . '.') === 0) { // Active app, prefer Talk results return -2;