Composer ignores emoji shortcodes when sending quickly
Steps to reproduce
Possibly related to https://github.com/element-hq/element-web/issues/27625
Attempt to send an emoji shortcode before the suggestion window pops up. You will not be barred from sending the message, and will instead send an embarrassing incomplete emoji as text.
This could potentially be solved by the client caching emoji suggestions, if network speed is somehow an issue, but I am unfamiliar with how the technology stack here works, or where this data comes from, or where the bottleneck lies.
Outcome
What did you expect?
The composer should prevent sending of messages when it is pending auto-completion for emojis. Enter should instead complete the emoji, or do nothing if the list of valid completions is not available.
What happened instead?
The composer ignored this state and sent the message anyway.
Operating system
Windows 8.1
Browser information
Firefox 115.12.0esr (64-bit). Reproducible on Chrome
URL for webapp
https://app.element.io/
Application version
1.11.69
Homeserver
matrix.org
Will you send logs?
No
Related https://github.com/element-hq/element-web/issues/9757 https://github.com/element-hq/element-web/issues/19333