rejoin logic was throwing away the prev_batch token

This commit is contained in:
Bruno Windels 2021-05-05 17:10:15 +02:00
parent 9546b13821
commit 08ba4577f6

View file

@ -200,10 +200,10 @@ export class SyncWriter {
const index = events.findIndex(event => event.event_id === lastEventId);
if (index !== -1) {
log.set("overlap_event_id", lastEventId);
return {
return Object.assign({}, timeline, {
limited: false,
events: events.slice(index + 1)
};
events: events.slice(index + 1),
});
}
}
}