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

Commit

Permalink
Fix notif panel exception around accessing roomId of undefined (#9546)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Nov 4, 2022
1 parent 5ca9acc commit be5a8ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/structures/TimelinePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ class TimelinePanel extends React.Component<IProps, IState> {
if (this.unmounted) return;

// ignore events for other rooms
if (replacedEvent.getRoomId() !== this.props.timelineSet.room.roomId) return;
if (replacedEvent.getRoomId() !== this.props.timelineSet.room?.roomId) return;

// we could skip an update if the event isn't in our timeline,
// but that's probably an early optimisation.
Expand Down

0 comments on commit be5a8ca

Please sign in to comment.