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

Commit

Permalink
Allow thread panel to be closed after being opened from notification
Browse files Browse the repository at this point in the history
  • Loading branch information
justjanne committed Jan 19, 2023
1 parent 8a2e386 commit 3e352e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/structures/ThreadView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default class ThreadView extends React.Component<IProps, IState> {
SettingsStore.unwatchSetting(this.layoutWatcherRef);

const hasRoomChanged = SdkContextClass.instance.roomViewStore.getRoomId() !== roomId;
if (this.props.isInitialEventHighlighted && !hasRoomChanged) {
if (this.props.initialEvent && !hasRoomChanged) {
dis.dispatch<ViewRoomPayload>({
action: Action.ViewRoom,
room_id: this.props.room.roomId,
Expand Down

0 comments on commit 3e352e4

Please sign in to comment.