element-web icon indicating copy to clipboard operation
element-web copied to clipboard

Composer ignores emoji shortcodes when sending quickly

Open WelcomeToLevel2 opened this issue 1 year ago • 1 comments

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.

image

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

WelcomeToLevel2 avatar Jun 23 '24 18:06 WelcomeToLevel2

Related https://github.com/element-hq/element-web/issues/9757 https://github.com/element-hq/element-web/issues/19333

t3chguy avatar Jun 24 '24 10:06 t3chguy