make pdu batch tokens zeroith-indexed

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2024-11-08 06:06:18 +00:00
1 parent f36757027e
commit e507c31306
9 files changed
+67 -52

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ async fn load_timeline(
let mut non_timeline_pdus = services
.rooms
.timeline
.pdus_until(sender_user, room_id, PduCount::max())
.pdus_rev(sender_user, room_id, PduCount::max())
.await?
.ready_take_while(|(pducount, _)| *pducount > roomsincecount);