EventIndexing: Check if there is a room when resetting the timeline.
This commit is contained in:
parent
f453fea24a
commit
1316e04776
2 changed files with 4 additions and 13 deletions
|
@ -1310,8 +1310,8 @@ export default createReactClass({
|
|||
cli.on("Room.timelineReset", async (room, timelineSet, resetAllTimelines) => {
|
||||
const eventIndex = EventIndexPeg.get();
|
||||
if (eventIndex === null) return;
|
||||
if (resetAllTimelines === true) return;
|
||||
await eventIndex.addCheckpointForLimitedRoom(room);
|
||||
if (room === null) return;
|
||||
await eventIndex.onLimitedTimeline(room);
|
||||
});
|
||||
|
||||
cli.on('sync', function(state, prevState, data) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue