mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 22:33:50 +01:00
Add TODO markers
This commit is contained in:
parent
7ecd11accb
commit
d25b0f65ea
1 changed files with 4 additions and 1 deletions
|
@ -88,6 +88,7 @@ class SearchHandler(BaseHandler):
|
|||
except KeyError:
|
||||
raise SynapseError(400, "Invalid search query")
|
||||
|
||||
# TODO: Search through left rooms too
|
||||
rooms = yield self.store.get_rooms_for_user_where_membership_is(
|
||||
user.to_string(),
|
||||
membership_list=[Membership.JOIN],
|
||||
|
@ -95,6 +96,8 @@ class SearchHandler(BaseHandler):
|
|||
)
|
||||
room_ids = set(r.room_id for r in rooms)
|
||||
|
||||
# TODO: Apply room filter to rooms list
|
||||
|
||||
rank_map, event_map = yield self.store.search_msgs(room_ids, search_term, keys)
|
||||
|
||||
allowed_events = yield self._filter_events_for_client(
|
||||
|
@ -111,7 +114,7 @@ class SearchHandler(BaseHandler):
|
|||
for e in allowed_events
|
||||
}
|
||||
|
||||
logger.info("returning: %r", results)
|
||||
logger.info("Found %d results", len(results))
|
||||
|
||||
defer.returnValue({
|
||||
"search_categories": {
|
||||
|
|
Loading…
Reference in a new issue