Remove legacy ruma return type on sync endpoint.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -21,7 +21,6 @@ use ruma::{
|
|||||||
State as RoomState, StateEvents, Timeline, ToDevice,
|
State as RoomState, StateEvents, Timeline, ToDevice,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
uiaa::UiaaResponse,
|
|
||||||
},
|
},
|
||||||
events::{
|
events::{
|
||||||
AnyRawAccountDataEvent, AnySyncEphemeralRoomEvent, StateEventType,
|
AnyRawAccountDataEvent, AnySyncEphemeralRoomEvent, StateEventType,
|
||||||
@@ -68,7 +67,7 @@ use tuwunel_service::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
use super::{load_timeline, share_encrypted_room};
|
use super::{load_timeline, share_encrypted_room};
|
||||||
use crate::{Ruma, RumaResponse, client::ignored_filter};
|
use crate::{Ruma, client::ignored_filter};
|
||||||
|
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
struct StateChanges {
|
struct StateChanges {
|
||||||
@@ -126,7 +125,7 @@ type PresenceUpdates = HashMap<OwnedUserId, PresenceEventContent>;
|
|||||||
pub(crate) async fn sync_events_route(
|
pub(crate) async fn sync_events_route(
|
||||||
State(services): State<crate::State>,
|
State(services): State<crate::State>,
|
||||||
body: Ruma<sync_events::v3::Request>,
|
body: Ruma<sync_events::v3::Request>,
|
||||||
) -> Result<sync_events::v3::Response, RumaResponse<UiaaResponse>> {
|
) -> Result<sync_events::v3::Response> {
|
||||||
let (sender_user, sender_device) = body.sender();
|
let (sender_user, sender_device) = body.sender();
|
||||||
|
|
||||||
let ping_presence = services
|
let ping_presence = services
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ macro_rules! ruma_handler {
|
|||||||
Fun: Fn($($tx,)* Ruma<Req>,) -> Fut + Send + Sync + 'static,
|
Fun: Fn($($tx,)* Ruma<Req>,) -> Fut + Send + Sync + 'static,
|
||||||
Fut: Future<Output = Result<Req::OutgoingResponse, Err>> + Send,
|
Fut: Future<Output = Result<Req::OutgoingResponse, Err>> + Send,
|
||||||
Req: IncomingRequest + Debug + Send + Sync + 'static,
|
Req: IncomingRequest + Debug + Send + Sync + 'static,
|
||||||
Err: IntoResponse + Send,
|
Err: IntoResponse + Debug + Send,
|
||||||
<Req as IncomingRequest>::OutgoingResponse: Send,
|
<Req as IncomingRequest>::OutgoingResponse: Send,
|
||||||
$( $tx: FromRequestParts<State> + Send + Sync + 'static, )*
|
$( $tx: FromRequestParts<State> + Send + Sync + 'static, )*
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user