Skip to content

Emoji autocomplete sorting is not temporally consistent after full shortcode match #19302

Closed
matrix-org/matrix-react-sdk
#8086
@MadLittleMods

Description

@MadLittleMods

Emoji autocomplete sorting is not temporally consistent after full match.

Steps to reproduce

  1. Type out one of the problem emoji listed below except for the last colon :grinning
  2. Notice how the autocomplete is sorted as expected
  3. Type the final ending colon :grinning:
  4. Notice the first result is no longer the direct match and instead shows some other emoji with similar names

I haven't nailed down the exactly why it occurs but it's something about emoji which have aliases or other emoji names which are shorter/higher priority and sort higher.

:+1: :grinning: :heart:
:o: :hand: :man: (:man:_beard: broken syntax tracked by #19304)
chrome_2021-10-05_16-07-32

Expected

The emoji autocomplete sort is the same before and after typing the final ending colon :. And shows the direct match as the first result.

Other notes

The mismatch does not happen with :sweat:, :monkey:, :boat:, :mailbox:, :cop:, :bow:, :kiss:, :golf: which seem like similar viable candidates but the sorting does change after you add the final end colon :.

Given you have to select the emoji in the emoji autocomplete, #7256, this bug makes it even harder to convert the emoji shortcode to Unicode emoji.


  • emoji syntax

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AutocompleteA-EmojiO-OccasionalAffects or can be seen by some users regularly or most users rarelyS-MinorImpairs non-critical functionality or suitable workarounds existT-Defect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions