From 5e81e5b8b84ff3954bb9b19cffeb80b679cabc44 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 25 Oct 2018 15:07:19 +0100 Subject: [PATCH] Fix variable scope --- src/components/views/rooms/MessageComposerInput.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/rooms/MessageComposerInput.js b/src/components/views/rooms/MessageComposerInput.js index 792dcede8a..570cb8a59b 100644 --- a/src/components/views/rooms/MessageComposerInput.js +++ b/src/components/views/rooms/MessageComposerInput.js @@ -573,8 +573,9 @@ export default class MessageComposerInput extends React.Component { } // emojioneify any emoji + let foundEmoji; do { - let foundEmoji = false; + foundEmoji = false; for (const node of editorState.document.getTexts()) { if (node.text !== '' && HtmlUtils.containsEmoji(node.text)) {