mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 21:14:52 -04:00
Split a storage function in two so that we don't have to do extra work.
This commit is contained in:
parent
8be5284e91
commit
23c639ff32
3 changed files with 14 additions and 8 deletions
|
@ -86,12 +86,7 @@ class StateHandler(object):
|
|||
If `event_type` is specified, then the method returns only the one
|
||||
event (or None) with that `event_type` and `state_key`.
|
||||
"""
|
||||
events = yield self.store.get_latest_events_in_room(room_id)
|
||||
|
||||
event_ids = [
|
||||
e_id
|
||||
for e_id, _, _ in events
|
||||
]
|
||||
event_ids = yield self.store.get_latest_event_ids_in_room(room_id)
|
||||
|
||||
cache = None
|
||||
if self._state_cache is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue