From df9637d3cedd80347c91ce3f5f085d4543e5ea9f Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 3 Dec 2020 11:38:11 -0800 Subject: [PATCH] modules/client/sync/rooms/timeline: Initialize the prev batch idx to head idx. --- modules/client/sync/rooms/timeline.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/client/sync/rooms/timeline.cc b/modules/client/sync/rooms/timeline.cc index 60601440d..437fcbe57 100644 --- a/modules/client/sync/rooms/timeline.cc +++ b/modules/client/sync/rooms/timeline.cc @@ -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