mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-04 21:58:54 +01:00
Comment
This commit is contained in:
parent
34473a9c7f
commit
0677fc1c4e
1 changed files with 3 additions and 0 deletions
|
@ -947,6 +947,9 @@ class RoomListHandler(BaseHandler):
|
|||
def handle_room(room_id):
|
||||
aliases = yield self.store.get_aliases_for_room(room_id)
|
||||
|
||||
# We pull each bit of state out indvidually to avoid pulling the
|
||||
# full state into memory. Due to how the caching works this should
|
||||
# be fairly quick, even if not originally in the cache.
|
||||
def get_state(etype, state_key):
|
||||
return self.state_handler.get_current_state(room_id, etype, state_key)
|
||||
|
||||
|
|
Loading…
Reference in a new issue