Scope editor reset when reply changed for thread view
This commit is contained in:
parent
a9f7ab785c
commit
836e427dc8
1 changed files with 1 additions and 1 deletions
|
@ -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([]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue