You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +03:00
Do not hide the root event of a thread
This commit is contained in:
@@ -448,7 +448,9 @@ export default class MessagePanel extends React.Component<IProps, IState> {
|
|||||||
// Always show highlighted event
|
// Always show highlighted event
|
||||||
if (this.props.highlightedEventId === mxEv.getId()) return true;
|
if (this.props.highlightedEventId === mxEv.getId()) return true;
|
||||||
|
|
||||||
if (mxEv.replyInThread
|
// Checking if the message has a "parentEventId" as we do not
|
||||||
|
// want to hide the root event of the thread
|
||||||
|
if (mxEv.replyInThread && mxEv.parentEventId
|
||||||
&& this.props.hideThreadedMessages
|
&& this.props.hideThreadedMessages
|
||||||
&& SettingsStore.getValue("feature_thread")) {
|
&& SettingsStore.getValue("feature_thread")) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user