mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-08 07:28:26 +00:00
Scope editor reset when reply changed for thread view
This commit is contained in:
@@ -165,7 +165,7 @@ export default class SendMessageComposer extends React.Component<IProps> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public componentDidUpdate(prevProps: IProps): void {
|
public componentDidUpdate(prevProps: IProps): void {
|
||||||
const replyToEventChanged = this.props.replyToEvent !== prevProps.replyToEvent;
|
const replyToEventChanged = this.props.replyInThread && (this.props.replyToEvent !== prevProps.replyToEvent);
|
||||||
if (replyToEventChanged) {
|
if (replyToEventChanged) {
|
||||||
this.model.reset([]);
|
this.model.reset([]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user