fix: Default PDU content to empty object instead of literal NULL

This commit is contained in:
timedout committed 2026-06-20 17:08:00 +01:00
1 parent ddb4ef539f
commit c0666a1793
1 file changed
+1 -1
+1 -1
View File
@@ -62,7 +62,7 @@ impl Default for PartialPdu {
fn default() -> Self {
Self {
event_type: "m.room.message".into(),
content: Box::<RawJsonValue>::default(),
content: to_raw_value("{}").unwrap(),
unsigned: None,
state_key: None,
redacts: None,