From 6dd4fb04e33814606687ce925e3b7f004a5b1f6f Mon Sep 17 00:00:00 2001 From: Kierre Date: Fri, 17 Oct 2025 15:49:19 -0400 Subject: [PATCH] Follow upstream Hammerhead response for `state-resolver` --- vona/custom/hammerhead.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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,