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

Commit 59fda52

Browse files
authored
When selecting reply in thread on a thread response open existing thread (#8291)
1 parent 391ec4c commit 59fda52

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/components/views/messages/MessageActionBar.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,19 @@ export default class MessageActionBar extends React.PureComponent<IMessageAction
232232
action: Action.ViewUserSettings,
233233
initialTabId: UserTab.Labs,
234234
});
235+
} else if (this.props.mxEvent.isThreadRelation) {
236+
showThread({
237+
rootEvent: this.props.mxEvent.getThread().rootEvent,
238+
initialEvent: this.props.mxEvent,
239+
scroll_into_view: true,
240+
highlighted: true,
241+
push: isCard,
242+
});
235243
} else {
236-
showThread({ rootEvent: this.props.mxEvent, push: isCard });
244+
showThread({
245+
rootEvent: this.props.mxEvent,
246+
push: isCard,
247+
});
237248
}
238249
};
239250

0 commit comments

Comments
 (0)