diff options
author | Joas Schilling <coding@schilljs.com> | 2020-08-18 21:12:21 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-08-20 21:30:42 +0300 |
commit | a77bef431539a9081646381bca64249596ee7609 (patch) | |
tree | cf659cf12bd439089f1ebd879afbc353c601635c /lib/Search | |
parent | b367c54633a919fa51a5d5a7cb5536edefc0f1f4 (diff) |
Fix CS
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Search')
-rw-r--r-- | lib/Search/CurrentMessageSearch.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/Search/CurrentMessageSearch.php b/lib/Search/CurrentMessageSearch.php index 1dc8d6e46..b2fd9e863 100644 --- a/lib/Search/CurrentMessageSearch.php +++ b/lib/Search/CurrentMessageSearch.php @@ -23,21 +23,12 @@ declare(strict_types=1); namespace OCA\Talk\Search; -use OCA\Talk\AppInfo\Application; -use OCA\Talk\Chat\ChatManager; -use OCA\Talk\Chat\MessageParser; use OCA\Talk\Exceptions\ParticipantNotFoundException; use OCA\Talk\Exceptions\RoomNotFoundException; use OCA\Talk\Exceptions\UnauthorizedException; -use OCA\Talk\Manager as RoomManager; -use OCA\Talk\Room; -use OCP\IL10N; -use OCP\IURLGenerator; use OCP\IUser; -use OCP\Search\IProvider; use OCP\Search\ISearchQuery; use OCP\Search\SearchResult; -use OCP\Search\SearchResultEntry; class CurrentMessageSearch extends MessageSearch { @@ -107,7 +98,7 @@ class CurrentMessageSearch extends MessageSearch { $result = []; foreach ($comments as $comment) { try { - $result[] = $this->commentToSearchResultEntry($room, $user, $comment); + $result[] = $this->commentToSearchResultEntry($room, $user, $comment, $query); } catch (UnauthorizedException $e) { } catch (ParticipantNotFoundException $e) { } |