1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-10-03 18:50:45 +00:00

fix: Fix pagination tokens being corrupted for backfilled PDUs

This commit is contained in:
Ginger 2025-09-04 10:33:43 -04:00 committed by nex
parent e38dec5864
commit 16f4efa708
6 changed files with 18 additions and 36 deletions

View file

@ -35,7 +35,7 @@ use ruma::{
};
use tracing::warn;
use super::utils::{count_to_token, parse_pagination_token as parse_token};
use super::utils::{count_to_pagination_token, pagination_token_to_count as parse_token};
use crate::Ruma;
/// list of safe and common non-state events to ignore if the user is ignored
@ -181,8 +181,8 @@ pub(crate) async fn get_message_events_route(
.collect();
Ok(get_message_events::v3::Response {
start: count_to_token(from),
end: next_token.map(count_to_token),
start: count_to_pagination_token(from),
end: next_token.map(count_to_pagination_token),
chunk,
state,
})