Fix redacted_because field being sent as a string

next
phesch 2021-05-26 17:16:40 +02:00
parent d1c0eaf628
commit ddcf1a715b
1 changed files with 1 additions and 3 deletions

View File

@ -74,9 +74,7 @@ impl PduEvent {
self.unsigned.insert( self.unsigned.insert(
"redacted_because".to_owned(), "redacted_because".to_owned(),
serde_json::to_string(reason) serde_json::to_value(reason).expect("to_value(PduEvent) always works"),
.expect("PduEvent::to_string always works")
.into(),
); );
self.content = new_content.into(); self.content = new_content.into();