fix: remove transaction_id from pdus over federation
This commit is contained in:
parent
b7ab57897b
commit
1bf614b0f5
2 changed files with 10 additions and 1 deletions
|
@ -36,6 +36,12 @@ impl Sending {
|
|||
let pdu_id = parts.next().ok_or_else(|| Error::bad_database("Invalid serverpduid in db."))?;
|
||||
let mut pdu_json = rooms.get_pdu_json_from_id(&pdu_id.into())?.ok_or_else(|| Error::bad_database("Event in serverpduids not found in db."))?;
|
||||
|
||||
if let Some(unsigned) = pdu_json
|
||||
.as_object_mut()
|
||||
.expect("json is object")
|
||||
.get_mut("unsigned") {
|
||||
unsigned.as_object_mut().expect("unsigned is object").remove("transaction_id");
|
||||
}
|
||||
pdu_json
|
||||
.as_object_mut()
|
||||
.expect("json is object")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue