You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-07 03:42:20 +03:00
When selecting reply in thread on a thread response open existing thread (#8291)
This commit is contained in:
committed by
GitHub
parent
391ec4c7e2
commit
59fda5273f
@@ -232,8 +232,19 @@ export default class MessageActionBar extends React.PureComponent<IMessageAction
|
|||||||
action: Action.ViewUserSettings,
|
action: Action.ViewUserSettings,
|
||||||
initialTabId: UserTab.Labs,
|
initialTabId: UserTab.Labs,
|
||||||
});
|
});
|
||||||
|
} else if (this.props.mxEvent.isThreadRelation) {
|
||||||
|
showThread({
|
||||||
|
rootEvent: this.props.mxEvent.getThread().rootEvent,
|
||||||
|
initialEvent: this.props.mxEvent,
|
||||||
|
scroll_into_view: true,
|
||||||
|
highlighted: true,
|
||||||
|
push: isCard,
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
showThread({ rootEvent: this.props.mxEvent, push: isCard });
|
showThread({
|
||||||
|
rootEvent: this.props.mxEvent,
|
||||||
|
push: isCard,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user