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

Commit 452198d

Browse files
committed
Allow thread panel to be closed after being opened from notification
1 parent 056fec8 commit 452198d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/structures/ThreadView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default class ThreadView extends React.Component<IProps, IState> {
123123
SettingsStore.unwatchSetting(this.layoutWatcherRef);
124124

125125
const hasRoomChanged = SdkContextClass.instance.roomViewStore.getRoomId() !== roomId;
126-
if (this.props.isInitialEventHighlighted && !hasRoomChanged) {
126+
if (this.props.initialEvent && !hasRoomChanged) {
127127
dis.dispatch<ViewRoomPayload>({
128128
action: Action.ViewRoom,
129129
room_id: this.props.room.roomId,

0 commit comments

Comments
 (0)