default to main event for batch tokens

fix prev_batch token for legacy sync timeline

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2024-11-24 21:47:25 +00:00
1 parent c519a40cb8
commit 97ad9afc86
3 files changed
+3 -4

No files matched your search

+2
View File
@@ -169,12 +169,14 @@ pub(crate) async fn get_context_route(
start: events_before
.last()
.map(at!(0))
.or(Some(base_token))
.as_ref()
.map(ToString::to_string),
end: events_after
.last()
.map(at!(0))
.or(Some(base_token))
.as_ref()
.map(ToString::to_string),