From 4382eca8b682bae0258013bca7054493210ce477 Mon Sep 17 00:00:00 2001 From: Weijia Date: Sat, 8 Jun 2019 04:31:29 -0700 Subject: [PATCH] [FIX] Draft message do not go away when whole message is removed #965 --- app/views/RoomView/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/RoomView/index.js b/app/views/RoomView/index.js index af06aac4e..4bcecf409 100644 --- a/app/views/RoomView/index.js +++ b/app/views/RoomView/index.js @@ -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) {