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

Commit 87b9c95

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/structures/ThreadView.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2021 - 2022 The Matrix.org Foundation C.I.C.
2+
Copyright 2021 - 2023 The Matrix.org Foundation C.I.C.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -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)