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

This commit is contained in:
timedout authored and Jade Ellis committed 2026-06-27 20:21:39 +01:00
1 parent 2e33760575
commit a5bf0f2bfb
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,