remove unused stuff

master
Aevann 2024-03-06 02:13:37 +02:00
parent cf0cda8bc8
commit 817752eca4
1 changed files with 0 additions and 4 deletions

View File

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