Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Wrong replacement of emoji while using custom emoji #3

Open
Ry0taK opened this issue Oct 28, 2019 · 0 comments
Open

Wrong replacement of emoji while using custom emoji #3

Ry0taK opened this issue Oct 28, 2019 · 0 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@Ry0taK
Copy link
Member

Ry0taK commented Oct 28, 2019

Environment

Forge: 1.12.2-14.23.5.2847
Emojicord: v1.0.2.15
Mods: Emojicord

Step to reproduce

  1. Join FruitServer Discord.
  2. Connect Emojicord to Discord.
  3. Copy :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit: :fruit:
  4. Paste copied text to chat box and send.
  5. Click up arrow key and send.
  6. Repeat step 4 for 6 times.

Expected result

Same emoji will be shown in chat.

image

Actual result

Wrong emoji is shown.

image

Reason

I think this is because of wrong replacement of emoji in Emojicord.
Emojicord replaces :fruit: to <:fruit:A1M96dlCAAA=>.
If the emoji's internal text reaches the chat length limit, it will be cut off. But, it includes :fruit:.
When we click up arrow key, it automatically loads previous chat history, and Emojicord will replace :fruit: to <:fruit:A1M96dlCAAA=>. It'll append extra < to previous chat history.

@sjcl sjcl added the bug Something isn't working label Oct 28, 2019
@sjcl sjcl added the good first issue Good for newcomers label Oct 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants