Toward abstracting Pdu into trait Event.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2025-05-11 07:02:14 +00:00
1 parent 28354db9df
commit 57c519bbb8
41 files changed
+831 -874

No files matched your search

+5 -2
View File
@@ -3,7 +3,10 @@ use futures::StreamExt;
use ruma::{api::client::threads::get_threads, uint};
use tuwunel_core::{
Result, at,
matrix::pdu::{PduCount, PduEvent},
matrix::{
Event,
pdu::{PduCount, PduEvent},
},
};
use crate::Ruma;
@@ -56,7 +59,7 @@ pub(crate) async fn get_threads_route(
chunk: threads
.into_iter()
.map(at!(1))
.map(PduEvent::into_room_event)
.map(Event::into_format)
.collect(),
})
}