Browse Source

Merge branch 'redaction_quotes' into 'master'

Fix redacted_because field being sent as a string

Closes #87

See merge request famedly/conduit!88
merge-requests/89/head
Timo Kösters 5 years ago
parent
commit
eeb0b59b76
  1. 4
      src/pdu.rs

4
src/pdu.rs

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

Loading…
Cancel
Save