-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Change the way we do public room list fetching #552
Conversation
matrixbot: test this please. |
|
||
# FIXME (erikj): START is no longer a valid value | ||
defer.returnValue({"start": "START", "end": "END", "chunk": chunk}) | ||
defer.returnValue({"start": "START", "end": "END", "chunk": result}) | ||
|
||
@defer.inlineCallbacks | ||
def get_room_avatar_url(self, room_id): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks like get_room_avatar isn't called anywhere now.
@@ -876,39 +876,71 @@ class RoomListHandler(BaseHandler): | |||
|
|||
@defer.inlineCallbacks | |||
def get_public_room_list(self): | |||
chunk = yield self.store.get_rooms(is_public=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_rooms
is only called in one place now, and that is to get the number of rooms in synapse.app.homeserver:phone_stats_home. It might be nice to kill it for good.
The changes themselves LGTM. It would be great to finish the cleanup and remove the mostly unused |
matrixbot: test this please |
959233f
to
f8aae79
Compare
LGTM |
Change the way we do public room list fetching
No description provided.