mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:06:08 -04:00
Make simple query rather than long one and then throw away half the results
This commit is contained in:
parent
b1ca784aca
commit
1d7702833d
2 changed files with 11 additions and 2 deletions
|
@ -267,8 +267,7 @@ class MessageHandler(BaseHandler):
|
|||
user, pagination_config.get_source_config("presence"), None
|
||||
)
|
||||
|
||||
public_rooms = yield self.store.get_rooms(is_public=True)
|
||||
public_room_ids = [r["room_id"] for r in public_rooms]
|
||||
public_room_ids = yield self.store.get_public_room_ids()
|
||||
|
||||
limit = pagin_config.limit
|
||||
if limit is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue