diff --git a/vona/globals/__init__.py b/vona/globals/__init__.py index d4d8473..a1be0d1 100644 --- a/vona/globals/__init__.py +++ b/vona/globals/__init__.py @@ -396,10 +396,17 @@ def strip_state(state_events) -> list: new_list.append(d) continue + if "room_id" in d: + ver = int(room_version_from_id(d["room_id"])) + else: + ver = 4 + + event_id = make_ref_hash(d, ver) new_dict = {} for k, v in d.items(): if k in keys_to_remove: continue new_dict[k] = strip_state(v) + new_dict["event_id"] = event_id new_list.append(new_dict) return new_list