
Wrong replacement of emoji while using custom emoji
Ry0taK opened this issue ยท 0 comments
Environment
Forge: 1.12.2-14.23.5.2847
Emojicord: v1.0.2.15
Mods: Emojicord
Step to reproduce
- Join FruitServer Discord.
- Connect Emojicord to Discord.
- 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:
- Paste copied text to chat box and send.
- Click up arrow key and send.
- Repeat step 4 for 6 times.
Expected result
Same emoji will be shown in chat.
Actual result
Wrong emoji is shown.
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.