Add shorteventid to pdu_id query; reorg related id query interface.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-10-03 05:01:00 +00:00
parent 1d14426018
commit 75509d50ca
2 changed files with 49 additions and 26 deletions

View File

@@ -1126,11 +1126,8 @@ async fn calculate_state_changes<'a>(
.chain(lazy_state_ids.stream())
.broad_filter_map(|shorteventid| {
services
.short
.get_eventid_from_short(shorteventid)
.and_then(async |event_id: OwnedEventId| {
services.timeline.get_pdu(&event_id).await
})
.timeline
.get_pdu_from_shorteventid(shorteventid)
.ok()
})
.collect::<Vec<_>>()