Fix variable scope
This commit is contained in:
parent
401f6333ed
commit
5e81e5b8b8
1 changed files with 2 additions and 1 deletions
|
@ -573,8 +573,9 @@ export default class MessageComposerInput extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
// emojioneify any emoji
|
// emojioneify any emoji
|
||||||
|
let foundEmoji;
|
||||||
do {
|
do {
|
||||||
let foundEmoji = false;
|
foundEmoji = false;
|
||||||
|
|
||||||
for (const node of editorState.document.getTexts()) {
|
for (const node of editorState.document.getTexts()) {
|
||||||
if (node.text !== '' && HtmlUtils.containsEmoji(node.text)) {
|
if (node.text !== '' && HtmlUtils.containsEmoji(node.text)) {
|
||||||
|
|
Loading…
Reference in a new issue