diff options
Diffstat (limited to 'lib/Search/CurrentMessageSearch.php')
-rw-r--r-- | lib/Search/CurrentMessageSearch.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Search/CurrentMessageSearch.php b/lib/Search/CurrentMessageSearch.php index 0b855c166..0b2eb93d0 100644 --- a/lib/Search/CurrentMessageSearch.php +++ b/lib/Search/CurrentMessageSearch.php @@ -23,6 +23,7 @@ declare(strict_types=1); namespace OCA\Talk\Search; +use OCA\Talk\Chat\ChatManager; use OCA\Talk\Exceptions\ParticipantNotFoundException; use OCA\Talk\Exceptions\RoomNotFoundException; use OCA\Talk\Exceptions\UnauthorizedException; @@ -91,7 +92,7 @@ class CurrentMessageSearch extends MessageSearch { $comments = $this->chatManager->searchForObjects( $query->getTerm(), [(string) $room->getId()], - 'comment', + ChatManager::VERB_MESSAGE, $offset, $query->getLimit() ); |