optional arguments for timeline pdus iterations
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
13ef6dcbcf
commit
1f2e939fd5
6 changed files with 26 additions and 21 deletions
|
@ -100,14 +100,14 @@ pub(crate) async fn get_message_events_route(
|
|||
Direction::Forward => services
|
||||
.rooms
|
||||
.timeline
|
||||
.pdus(sender_user, room_id, from)
|
||||
.pdus(Some(sender_user), room_id, Some(from))
|
||||
.await?
|
||||
.boxed(),
|
||||
|
||||
Direction::Backward => services
|
||||
.rooms
|
||||
.timeline
|
||||
.pdus_rev(sender_user, room_id, from)
|
||||
.pdus_rev(Some(sender_user), room_id, Some(from))
|
||||
.await?
|
||||
.boxed(),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue