mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-23 02:31:39 +01:00
rejoin logic was throwing away the prev_batch token
This commit is contained in:
parent
9546b13821
commit
08ba4577f6
@ -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),
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user