1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-20 16:22:28 +03:00

Fix variable scope

This commit is contained in:
David Baker
2018-10-25 15:07:19 +01:00
parent 401f6333ed
commit 5e81e5b8b8

View File

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