diff options
author | Joas Schilling <coding@schilljs.com> | 2020-10-19 15:36:53 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-10-30 10:38:08 +0100 |
commit | c19f07ca8014282c07f87b26e0da3cdb8344dc26 (patch) | |
tree | 7d0899421e05ce1edb186ec34394b0fde5c3a27e /lib/Search | |
parent | a961a26ecc57337c3f89b3decd7899b00f4fda67 (diff) |
Fix function usage
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Search')
-rw-r--r-- | lib/Search/ConversationSearch.php | 2 | ||||
-rw-r--r-- | lib/Search/CurrentMessageSearch.php | 2 | ||||
-rw-r--r-- | lib/Search/MessageSearch.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/Search/ConversationSearch.php b/lib/Search/ConversationSearch.php index 6db88d459..89ace0a62 100644 --- a/lib/Search/ConversationSearch.php +++ b/lib/Search/ConversationSearch.php @@ -83,7 +83,7 @@ class ConversationSearch implements IProvider { * @inheritDoc */ public function search(IUser $user, ISearchQuery $query): SearchResult { - $rooms = $this->manager->getRoomsForParticipant($user->getUID()); + $rooms = $this->manager->getRoomsForUser($user->getUID()); $result = []; foreach ($rooms as $room) { diff --git a/lib/Search/CurrentMessageSearch.php b/lib/Search/CurrentMessageSearch.php index 75b37ebba..0b855c166 100644 --- a/lib/Search/CurrentMessageSearch.php +++ b/lib/Search/CurrentMessageSearch.php @@ -76,7 +76,7 @@ class CurrentMessageSearch extends MessageSearch { } try { - $room = $this->roomManager->getRoomForParticipantByToken( + $room = $this->roomManager->getRoomForUserByToken( $currentToken, $user->getUID() ); diff --git a/lib/Search/MessageSearch.php b/lib/Search/MessageSearch.php index ed65ca91e..ada804a2b 100644 --- a/lib/Search/MessageSearch.php +++ b/lib/Search/MessageSearch.php @@ -112,7 +112,7 @@ class MessageSearch implements IProvider { $title = $this->l->t('Messages in other conversations'); } - $rooms = $this->roomManager->getRoomsForParticipant($user->getUID()); + $rooms = $this->roomManager->getRoomsForUser($user->getUID()); $roomMap = []; foreach ($rooms as $room) { |