element-hq / element-hq/element-web

Composer ignores emoji shortcodes when sending quickly

Open
#27,627 1 comment 0 reactions 0 assignees View on GitHub
A-Composer A-Emoji O-Occasional S-Minor T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### 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](https://github.com/element-hq/element-web/assets/12480919/655e7b9e-a8b2-4329-9d47-f8fcd36b86cd)

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.