Skip to content

Commit

Permalink
Improve typing slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
andybalaam committed Mar 16, 2023
1 parent 592a7b0 commit 94101d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/structures/MessagePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,8 @@ export default class MessagePanel extends React.Component<IProps, IState> {
mxEv: MatrixEvent,
last = false,
isGrouped = false,
nextEvent: EventAndShouldShow = null,
nextEventWithTile?: MatrixEvent,
nextEvent: EventAndShouldShow | null = null,
nextEventWithTile: MatrixEvent | null = null,
): ReactNode[] {
const ret: ReactNode[] = [];

Expand Down Expand Up @@ -1078,7 +1078,7 @@ abstract class BaseGrouper {
public readonly event: EventAndShouldShow,
public readonly prevEvent: MatrixEvent | null,
public readonly lastShownEvent: MatrixEvent,
public readonly nextEvent?: EventAndShouldShow,
public readonly nextEvent: EventAndShouldShow | null,
public readonly nextEventTile?: MatrixEvent,
) {
this.readMarker = panel.readMarkerForEvent(event.event.getId(), event.event === lastShownEvent);
Expand Down

0 comments on commit 94101d2

Please sign in to comment.