Conform more of the codebase to strictNullChecks (#10738)
This commit is contained in:
committed by
GitHub
parent
5e8488c283
commit
52017f62e1
@@ -71,7 +71,7 @@ class FilePanel extends React.Component<IProps, IState> {
|
||||
removed: boolean,
|
||||
data: IRoomTimelineData,
|
||||
): void => {
|
||||
if (room?.roomId !== this.props?.roomId) return;
|
||||
if (room?.roomId !== this.props.roomId) return;
|
||||
if (toStartOfTimeline || !data || !data.liveEvent || ev.isRedacted()) return;
|
||||
|
||||
const client = MatrixClientPeg.get();
|
||||
|
||||
Reference in New Issue
Block a user