partially revert e507c31306
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
61174dd0d3
commit
3962333043
8 changed files with 13 additions and 18 deletions
|
@ -138,10 +138,7 @@ pub(crate) async fn get_message_events_route(
|
|||
|
||||
let start_token = events.first().map(at!(0)).unwrap_or(from);
|
||||
|
||||
let next_token = events
|
||||
.last()
|
||||
.map(at!(0))
|
||||
.map(|count| count.saturating_inc(body.dir));
|
||||
let next_token = events.last().map(at!(0));
|
||||
|
||||
if !cfg!(feature = "element_hacks") {
|
||||
if let Some(next_token) = next_token {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue