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)) {