[X] This is not a report against a user of the official instance.
[X] All info applicable to the issue has been attached.
Describe the bug
When a global emoji is being sent (in the format [emoji: emoji]), Unifier deletes the sent message to replace this placeholder text with the actual emoji. However, if the emoji is invalid, Unifier deletes the message but never sends the formatted text back as a webhook message.
To Reproduce
Send a message in a Unifier room with an invalid emoji name
Expected behavior
Unifier does not delete the message at all.
Screenshots
Platform
Discord
Version
v2.0.6-patch4
Extensions
Revolt Support
Modified instance
[ ] Unifier was modified when the bug was found.
Modified instance repository
Additional context
Probably due to a missing emoji name check in the on_message func. Investigating.
Checklist
Describe the bug
When a global emoji is being sent (in the format
[emoji: emoji]
), Unifier deletes the sent message to replace this placeholder text with the actual emoji. However, if the emoji is invalid, Unifier deletes the message but never sends the formatted text back as a webhook message.To Reproduce
Expected behavior
Unifier does not delete the message at all.
Screenshots
Platform
Discord
Version
v2.0.6-patch4
Extensions
Revolt Support
Modified instance
Modified instance repository
Additional context
Probably due to a missing emoji name check in the on_message func. Investigating.