mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 04:37:00 +00:00
fix: Don't create fake objects when defaulting a partial PDU build
This commit is contained in:
1 parent
9b80a99aa7
commit
5fa3d5f6c8
1 file changed
+5
-2
@@ -5,7 +5,10 @@ use ruma::{
|
||||
events::{MessageLikeEventContent, StateEventContent, TimelineEventType},
|
||||
};
|
||||
use serde::Deserialize;
|
||||
use serde_json::value::{RawValue as RawJsonValue, to_raw_value};
|
||||
use serde_json::{
|
||||
json,
|
||||
value::{RawValue as RawJsonValue, to_raw_value},
|
||||
};
|
||||
|
||||
use super::StateKey;
|
||||
|
||||
@@ -62,7 +65,7 @@ impl Default for PartialPdu {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
event_type: "m.room.message".into(),
|
||||
content: to_raw_value("{}").unwrap(),
|
||||
content: to_raw_value(&json!({})).unwrap(),
|
||||
unsigned: None,
|
||||
state_key: None,
|
||||
redacts: None,
|
||||
|
||||
Reference in new issue
Block a user