Implement rooms V3 through V9
This commit is contained in:
@@ -73,7 +73,14 @@ async def room_state(room):
|
||||
key = f"({event["type"]},'{event["state_key"]}')"
|
||||
formatted_state[key] = event
|
||||
|
||||
event_id = event["event_id"]
|
||||
if "event_id" in event:
|
||||
event_id = event["event_id"]
|
||||
else:
|
||||
event_id = globals.make_ref_hash(
|
||||
event,
|
||||
int(globals.room_version_from_id(room))
|
||||
)
|
||||
|
||||
event_cache[event_id] = event
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user