You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
EventIndexing: Check if there is a room when resetting the timeline.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user