improvement: better appservice compatibility and optimizations
This commit is contained in:
parent
fd3fb3a7ed
commit
6924dfc8ea
9 changed files with 270 additions and 207 deletions
|
@ -557,7 +557,7 @@ pub async fn send_transaction_message_route<'a>(
|
|||
pdu_id.push(0xff);
|
||||
pdu_id.extend_from_slice(&count.to_be_bytes());
|
||||
|
||||
db.rooms.append_to_state(&pdu_id, &pdu, &db.globals)?;
|
||||
let next_room_state = db.rooms.append_to_state(&pdu_id, &pdu, &db.globals)?;
|
||||
|
||||
db.rooms.append_pdu(
|
||||
&pdu,
|
||||
|
@ -569,6 +569,8 @@ pub async fn send_transaction_message_route<'a>(
|
|||
&db.admin,
|
||||
)?;
|
||||
|
||||
db.rooms.set_room_state(&room_id, &next_room_state)?;
|
||||
|
||||
for appservice in db.appservice.iter_all().filter_map(|r| r.ok()) {
|
||||
db.sending.send_pdu_appservice(&appservice.0, &pdu_id)?;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue