0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-27 11:18:51 +02:00

modules/client/sync/rooms/timeline: Initialize the prev batch idx to head idx.

This commit is contained in:
Jason Volk 2020-12-03 11:38:11 -08:00
parent 058f20fe30
commit df9637d3ce

View file

@ -267,7 +267,7 @@ ircd::m::sync::_room_timeline_polylog_events(data &data,
// event_idx on the way down in case of renewing the iterator for the
// way back. This is not a big deal but rocksdb should fix their shit.
m::event::id::buf event_id;
m::event::idx event_idx {0};
m::event::idx event_idx {data.room_head};
m::room::events it
{
room