[FIX] Draft message do not go away when whole message is removed #965

This commit is contained in:
Weijia 2019-06-08 04:31:29 -07:00 committed by Diego Mello
parent 3cd84a10f6
commit 4382eca8b6
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ export default class RoomView extends React.Component {
componentWillUnmount() {
this.mounted = false;
const { editing, replying } = this.props;
if (!editing && this.messagebox && this.messagebox.current && this.messagebox.current.text) {
if (!editing && this.messagebox && this.messagebox.current) {
const { text } = this.messagebox.current;
let obj;
if (this.tmid) {