From bd9f4aa2197621057d04d5869e88ea6f0f83aedf Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Mon, 3 Jun 2019 13:56:16 -0300 Subject: [PATCH] [FIX] Stop mention tracking when messagebox is empty (#957) --- app/containers/MessageBox/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/containers/MessageBox/index.js b/app/containers/MessageBox/index.js index 9ebf458a7..db5bdf109 100644 --- a/app/containers/MessageBox/index.js +++ b/app/containers/MessageBox/index.js @@ -199,6 +199,8 @@ class MessageBox extends Component { } const [, lastChar, name] = result; this.identifyMentionKeyword(name, lastChar); + } else { + this.stopTrackingMention(); } }, 100)