mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-23 17:23:55 +00:00
Sanity check state_key is None instead of some empty string
This commit is contained in:
1 parent
9fa851d7f5
commit
ae3a03fc4f
1 file changed
+1
@@ -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