Renaming custom emojis breaks image
Description:
After renaming an emoji the image is still visible in Administration but in chat only a little question mark appears.
Steps to reproduce:
- Go to 'Custom Emojis' in Administration
- Create new emoji with name 'foo'
- Write ':foo:' in chat -> Emoji shows
- Go to 'Custom Emojis' in Administration and change name to 'bar'
- Write ':bar:' in chat
Expected behavior:
Emoji shows
Actual behavior:
Little question mark placeholder shows
Additional context
If I upload the image again when renaming and then save the emoji it works as intended.
Server Setup Information:
- Version of Rocket.Chat Server: 3.5.0
- Operating System: linux
- Deployment Method: docker
- Number of Running Instances: 1
Client Setup Information
- Desktop App or Browser Version: Chrome 84
- Operating System: Arch Linux
This maybe is a fundamental problem in Administration and related to: https://github.com/RocketChat/Rocket.Chat/issues/18441 https://github.com/RocketChat/Rocket.Chat/issues/18458 https://github.com/RocketChat/Rocket.Chat/issues/18493
Seen this as well.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This is still a bug in 3.7.0.
Renaming an emoji breaks previous use and new use of the emoji.
(They show a white "?" in a black square).
Today I investigated into several problems regarding custom emojis (cf. https://github.com/RocketChat/feature-requests/issues/807, https://github.com/RocketChat/Rocket.Chat/issues/26980).
In that process, I stumbled upon the problem described in this issue as well which still persists in Rocket.Chat 5.1.4:

Is anyone solving this issue? If not, @dudanogueira would you kindly assign this to me?