Scope editor reset when reply changed for thread view

This commit is contained in:
Germain Souquet 2021-09-24 11:13:57 +01:00
parent a9f7ab785c
commit 836e427dc8

View file

@ -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([]);
} }