Add shorteventid to pdu_id query; reorg related id query interface.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
1d14426018
commit
75509d50ca
2 changed files with 49 additions and 26 deletions
|
|
@ -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<_>>()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue