Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit a50e011

Browse files
committed
Fix type lints
1 parent eb5e899 commit a50e011

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Diff for: src/components/structures/FilePanel.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ class FilePanel extends React.Component<IProps, IState> {
104104
}
105105

106106
if (!this.state.timelineSet.eventIdToTimeline(ev.getId())) {
107-
this.state.timelineSet.addEventToTimeline(ev, timeline, false);
107+
this.state.timelineSet.addEventToTimeline(ev, timeline, {
108+
toStartOfTimeline: false,
109+
});
108110
}
109111
}
110112

Diff for: src/indexing/EventIndex.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,9 @@ export default class EventIndex extends EventEmitter {
808808
// Add the events to the timeline of the file panel.
809809
matrixEvents.forEach(e => {
810810
if (!timelineSet.eventIdToTimeline(e.getId())) {
811-
timelineSet.addEventToTimeline(e, timeline, direction == EventTimeline.BACKWARDS);
811+
timelineSet.addEventToTimeline(e, timeline, {
812+
toStartOfTimeline: direction == EventTimeline.BACKWARDS,
813+
});
812814
}
813815
});
814816

0 commit comments

Comments
 (0)