de-global services for services

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2024-07-27 08:26:42 +00:00
1 parent 992c0a1e58
commit 010e4ee35a
85 files changed
+2480 -1887

No files matched your search

+1 -2
View File
@@ -6,7 +6,6 @@ use ruma::{
api::{client::error::ErrorKind, federation::authorization::get_event_authorization},
RoomId,
};
use service::sending::convert_to_outgoing_federation_event;
use crate::Ruma;
@@ -60,7 +59,7 @@ pub(crate) async fn get_event_authorization_route(
Ok(get_event_authorization::v1::Response {
auth_chain: auth_chain_ids
.filter_map(|id| services.rooms.timeline.get_pdu_json(&id).ok()?)
.map(convert_to_outgoing_federation_event)
.map(|pdu| services.sending.convert_to_outgoing_federation_event(pdu))
.collect(),
})
}