Convert uses of serde_json::Value to CanonicalJsonObject

This commit is contained in:
Devin Ragotzy
2020-11-30 12:10:33 -05:00
committed by Timo Kösters
parent b6d721374f
commit 27e686f9ff
5 changed files with 277 additions and 256 deletions

View File

@@ -185,9 +185,7 @@ impl Sending {
.iter()
.map(|pdu_id| {
Ok::<_, (Box<ServerName>, Error)>(
// TODO: this was a PduStub
// In order for sending to work these actually do have to be
// PduStub but, since they are Raw<..> we can fake it.
// TODO: check room version and remove event_id if needed
serde_json::from_str(
PduEvent::convert_to_outgoing_federation_event(
rooms