limit sync response events to within the since/next_batch window
fixes #606 Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
5256cad396
commit
bae0667066
3 changed files with 7 additions and 4 deletions
|
@ -540,7 +540,8 @@ async fn load_joined_room(
|
|||
let insert_lock = services.rooms.timeline.mutex_insert.lock(room_id).await;
|
||||
drop(insert_lock);
|
||||
|
||||
let (timeline_pdus, limited) = load_timeline(services, sender_user, room_id, sincecount, 10_usize).await?;
|
||||
let (timeline_pdus, limited) =
|
||||
load_timeline(services, sender_user, room_id, sincecount, Some(next_batchcount), 10_usize).await?;
|
||||
|
||||
let send_notification_counts = !timeline_pdus.is_empty()
|
||||
|| services
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue