Follow upstream Hammerhead response for state-resolver
This commit is contained in:
@@ -62,14 +62,12 @@ async def room_state(room):
|
||||
event_cache = {}
|
||||
|
||||
for event in state:
|
||||
key = f"{event["type"]}:{event["state_key"]}"
|
||||
key = f"({event["type"]},'{event["state_key"]}')"
|
||||
formatted_state[key] = event
|
||||
|
||||
event_id = event["event_id"]
|
||||
event_cache[event_id] = event
|
||||
|
||||
del event["event_id"]
|
||||
|
||||
|
||||
return jsonify({
|
||||
"current_state": formatted_state,
|
||||
|
||||
Reference in New Issue
Block a user