mirror of
https://github.com/element-hq/synapse.git
synced 2026-11-11 16:37:42 +00:00
Ensure we build valid MSC4242 events
This commit is contained in:
1 parent
6fa25a10e8
commit
fecc9f4a7f
1 file changed
+1
@@ -307,6 +307,7 @@ class EventBuilder:
|
||||
# Auth events are removed entirely on state DAG rooms
|
||||
event_dict.pop("auth_events")
|
||||
assert prev_state_events is not None
|
||||
assert len(prev_state_events) <= 20
|
||||
event_dict["prev_state_events"] = prev_state_events
|
||||
if self.room_id is not None:
|
||||
event_dict["room_id"] = self.room_id
|
||||
|
||||
Reference in new issue
Block a user