diff --git a/vona/custom/hammerhead.py b/vona/custom/hammerhead.py index 804b01b..38331bb 100644 --- a/vona/custom/hammerhead.py +++ b/vona/custom/hammerhead.py @@ -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,