Skip to content
Snippets Groups Projects
Commit 2a3e822f authored by Erik Johnston's avatar Erik Johnston
Browse files

Comment

parent d72667fc
No related branches found
No related tags found
No related merge requests found
......@@ -71,6 +71,15 @@ class StateStore(SQLBaseStore):
@cached(max_entries=100000, iterable=True)
def get_current_state_ids(self, room_id):
"""Get the current state event ids for a room based on the
current_state_events table.
Args:
room_id (str)
Returns:
deferred: dict of (type, state_key) -> event_id
"""
def _get_current_state_ids_txn(txn):
txn.execute(
"""SELECT type, state_key, event_id FROM current_state_events
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment