forked from mystiq/hydrogen-web
rejoin logic was throwing away the prev_batch token
This commit is contained in:
parent
9546b13821
commit
08ba4577f6
1 changed files with 3 additions and 3 deletions
|
@ -200,10 +200,10 @@ export class SyncWriter {
|
||||||
const index = events.findIndex(event => event.event_id === lastEventId);
|
const index = events.findIndex(event => event.event_id === lastEventId);
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
log.set("overlap_event_id", lastEventId);
|
log.set("overlap_event_id", lastEventId);
|
||||||
return {
|
return Object.assign({}, timeline, {
|
||||||
limited: false,
|
limited: false,
|
||||||
events: events.slice(index + 1)
|
events: events.slice(index + 1),
|
||||||
};
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue