refactor sending interface stack

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-03-29 16:29:25 -07:00 committed by June
parent f956e8c3b5
commit 4becbed2a7
5 changed files with 95 additions and 68 deletions

View file

@ -1348,16 +1348,7 @@ pub(crate) async fn invite_helper(
"Could not accept incoming PDU as timeline event.",
))?;
// Bind to variable because of lifetimes
let servers = services()
.rooms
.state_cache
.room_servers(room_id)
.filter_map(Result::ok)
.filter(|server| &**server != services().globals.server_name());
services().sending.send_pdu(servers, &pdu_id)?;
services().sending.send_pdu_room(room_id, &pdu_id)?;
return Ok(());
}