Skip to content
Snippets Groups Projects
Commit ba87eb67 authored by Erik Johnston's avatar Erik Johnston
Browse files

Fix bug where we tried to insert state events with null state key

parent d170fbdb
Branches
Tags
No related merge requests found
...@@ -217,7 +217,8 @@ class DataStore(RoomMemberStore, RoomStore, ...@@ -217,7 +217,8 @@ class DataStore(RoomMemberStore, RoomStore,
) )
raise _RollbackButIsFineException("_persist_event") raise _RollbackButIsFineException("_persist_event")
if is_new_state and hasattr(event, "state_key"): is_state = hasattr(event, "state_key") and event.state_key is not None
if is_new_state and is_state:
vals = { vals = {
"event_id": event.event_id, "event_id": event.event_id,
"room_id": event.room_id, "room_id": event.room_id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment