Do...while loops are a thing
parent
78d8d22457
commit
401f6333ed
|
@ -573,7 +573,7 @@ export default class MessageComposerInput extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
// emojioneify any emoji
|
// emojioneify any emoji
|
||||||
while (true) {
|
do {
|
||||||
let foundEmoji = false;
|
let foundEmoji = false;
|
||||||
|
|
||||||
for (const node of editorState.document.getTexts()) {
|
for (const node of editorState.document.getTexts()) {
|
||||||
|
@ -607,9 +607,7 @@ export default class MessageComposerInput extends React.Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} while (foundEmoji);
|
||||||
if (!foundEmoji) break;
|
|
||||||
}
|
|
||||||
|
|
||||||
// work around weird bug where inserting emoji via the macOS
|
// work around weird bug where inserting emoji via the macOS
|
||||||
// emoji picker can leave the selection stuck in the emoji's
|
// emoji picker can leave the selection stuck in the emoji's
|
||||||
|
|
Loading…
Reference in New Issue