Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Custom Emjoi Additions Require Refresh

Open kodypeterson opened this issue 10 years ago • 4 comments

Your Rocket.Chat version: 0.40 with Node 4.5

When adding a new custom emoji, in order to see the image and not the :emoji-name: all clients have to refresh.

kodypeterson avatar Sep 21 '16 18:09 kodypeterson

This is very annoying indeed.

engelgabriel avatar Sep 21 '16 18:09 engelgabriel

I'm pretty sure that 6639d80aee4cf9be537a8cd86058c70af82912b3 introduced this issue.

If list is created and used in render(), then other changes need to be made when creating/editing/deleting custom emoji.

The changes in the commit only sets/modifies RocketChat.emoji.packages.emojiCustom.list on Meteor.startup()

nokobon avatar Sep 21 '16 18:09 nokobon

This can be fixed by reverting emojiCustom.js to 4351a368ce630dbb045ca9cc5ab09ce42574177f unless there are any changes to emoji that I missed. There shouldn't be any issues with aliases appearing in the emoji picker because that issue was introduced here

If RocketChat.emoji.packages.emojiCustom.list is kept rather than reverting the file, the package will need to manipulate both RocketChat.emoji.packages.emojiCustom.list and RocketChat.emoji.list because of how the autocomplete works.

nokobon avatar Sep 21 '16 19:09 nokobon

@nokobon thanks for the investigation :) I'm already working on a fix for this.

sampaiodiego avatar Sep 21 '16 19:09 sampaiodiego