You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-22 04:02:40 +03:00
Fix variable scope
This commit is contained in:
@@ -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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user