mirror of
https://github.com/element-hq/synapse.git
synced 2026-06-01 00:04:19 +00:00
Sanity check state_key is None instead of some empty string
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user