reorg PduEvent strip tools and callsites
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -40,5 +40,5 @@ pub(crate) async fn get_room_event_route(
|
||||
|
||||
event.add_age().ok();
|
||||
|
||||
Ok(get_room_event::v3::Response { event: event.to_room_event() })
|
||||
Ok(get_room_event::v3::Response { event: event.into_room_event() })
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ pub(crate) async fn room_initial_sync_route(
|
||||
chunk: events
|
||||
.into_iter()
|
||||
.map(at!(1))
|
||||
.map(|pdu| pdu.to_room_event())
|
||||
.map(PduEvent::into_room_event)
|
||||
.collect(),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user