Sanity check state_key is None instead of some empty string

This commit is contained in:
Erik Johnston
2026-05-27 13:36:57 +01:00
parent 9fa851d7f5
commit ae3a03fc4f
+1
View File
@@ -614,6 +614,7 @@ mod tests {
let parsed_value = serde_json::to_value(&event).unwrap();
assert_eq!(&*event.common_fields.type_, "m.room.message");
assert_eq!(event.common_fields.state_key, None);
assert_eq!(&*event.specific_fields.room_id, "!room:localhost");
assert_eq!(&*event.specific_fields.event_id, "$event1:localhost");