From 817752eca4660b4d4f4cef42bf812150639a36e2 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 6 Mar 2024 02:13:37 +0200 Subject: [PATCH] remove unused stuff --- files/assets/js/emoji_modal/inline_emoji_modal.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/files/assets/js/emoji_modal/inline_emoji_modal.js b/files/assets/js/emoji_modal/inline_emoji_modal.js index 8d39fdb7a..76cd8be39 100644 --- a/files/assets/js/emoji_modal/inline_emoji_modal.js +++ b/files/assets/js/emoji_modal/inline_emoji_modal.js @@ -124,10 +124,8 @@ function update_inline_emoji_modal(event) switch (event.data) { case ':': - emoji_typing_state = true; break; case ' ': - emoji_typing_state = false; break; default: break; @@ -138,8 +136,6 @@ function update_inline_emoji_modal(event) current_word = /(^|\s)([:!][!#a-zA-Z0-9_]+(?=\n|$))/.exec(text.slice(0, coords === -1 ? text.length : coords)); if (current_word) current_word = current_word[2].toLowerCase(); - /* We could also check emoji_typing_state here, which is less accurate but more efficient. I've - * kept it unless someone wants to provide an option to toggle it for performance */ if (current_word && curr_word_is_emoji() && current_word != ":") { openSpeedModal().then( () => {