From be5a8ca3b9c794de648626c06d636c7e674856ec Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 4 Nov 2022 16:40:02 +0000 Subject: [PATCH] Fix notif panel exception around accessing roomId of undefined (#9546) --- src/components/structures/TimelinePanel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/TimelinePanel.tsx b/src/components/structures/TimelinePanel.tsx index fe7ecc8248..2592040f2a 100644 --- a/src/components/structures/TimelinePanel.tsx +++ b/src/components/structures/TimelinePanel.tsx @@ -798,7 +798,7 @@ class TimelinePanel extends React.Component { 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.