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

Convert (Y) to thumbs up emoji like :) is

Open alexbrazier opened this issue 9 years ago • 23 comments

Your Rocket.Chat version: 0.48.2

As (Y) is quite popular for a thumbs up 👍 , it would be good to get it to automatically in the same way that :) and :( works

alexbrazier avatar Jan 06 '17 13:01 alexbrazier

Would be nice to configure this globally, this kind of feature is kinda annoying, because you don't expect some URLs or code-snippets to have EMOJIS inside them. (I really got annoyed by this with Skype)

FibreFoX avatar Jan 06 '17 18:01 FibreFoX

I am willing to take this on. Any clue where to start, because I am having a hard time to find where the :) :( translation to emoji is made

happy-dev avatar Feb 26 '17 12:02 happy-dev

@happy-dev it looks to be imported from here, as said in this file:

var emojiList = JSON.parse(fs.readFileSync('emoji.json', 'utf-8'));

/**
 * update emojiList variable with the most recent emojione release then
 * run: node generateEmojiIndex.js
 * grab the results and put into emojiPicker.js file
 */

Maybe the emojione project has to provide a support for custom aliases, while I was researching for it, I found this issue.

rbprado avatar Mar 03 '17 01:03 rbprado

Quite busy this week but I have a look ASAP

happy-dev avatar Mar 03 '17 11:03 happy-dev

I wonder if we can't manually change that in the emojilist (while the official package doesn't implement)?

var emojiList = JSON.parse(fs.readFileSync('emoji.json', 'utf-8'));

then

emojiList['thumbsup'].aliases.push('(Y)') or something like that.

marceloschmidt avatar Mar 06 '17 13:03 marceloschmidt

Yes, sure! It would perfectly insert the (Y) to the emojiList['thumbsup']['aliases'] key. But I was afraid about hardcoding it right after reading the emoji.json. I dunno but I assumed that it would not be desirable.

I also tried to build and run the app with this fix, following this issue comment and while running it here the (Y) doesn't work. So maybe need to change something else.

rbprado avatar Mar 08 '17 11:03 rbprado

It is already possible to have custom emojis, why not creating a default-conversion-map which is configurable via global admin-mask? And making it enabled/disabled per user-basis ;) don't be annoying

FibreFoX avatar Mar 08 '17 11:03 FibreFoX

@FibreFoX @marceloschmidt I am willing to solve this issue. I have gone through the packages of emoji, emoji-custom, emoji-emojione. till now i have deciphered that what emoji-custom , emoji-emojione does. But Does the emoji package was created to build to provide the user to choose an emoticon ??

catchabhisek avatar Mar 08 '17 14:03 catchabhisek

Don't know about the package itself, but it I have an area for custom emojis inside the administration ;) so I guess it was might not be created in that fashion, but the RocketChat interfaces say so.

FibreFoX avatar Mar 08 '17 16:03 FibreFoX

I would like to be assigned on this one.

abhigyank avatar May 16 '17 11:05 abhigyank

If I understand @FibreFoX here I think this should kind of be a won't implement because an admin can easily add this already to the list of emojis?

I feel like this should be something that the admin toggles, and while we're at it, I think that should be the case for the B) translation to 😎 and those kinds of things. I've only ever see them annoy users.

simonv3 avatar Nov 05 '17 16:11 simonv3

@simonv3 Yes, my idea was that this is already possible, at least for some "quick-win" solution. Maybe this can be some setting, which is delivered "out-of-the-box" with a normal installation, but it's a design-decision whom to annoy most. Some users (like me too) are often "confronted" with non-changable decisions. If the administrator chooses to enable this translation, some users might not be honored in their usage of the chat, so this might even turn out to be not a complete solution in case of adding these to the custom emojis.

These are the options as far as I can see:

  • server-wide (this just makes it able)
  • channel-wide (some channels might not want to have them)
  • user-specific (some users are extremly annoyed by these emojis)

This can even be expanded to "permission-level" for using emojis :D a lot of crazy ideas here possible.

FibreFoX avatar Nov 05 '17 18:11 FibreFoX

I am really interested to contribute to Rocket.Chat. Can you help me in getting started?

vchrombie avatar Jan 05 '18 12:01 vchrombie

I would like to be assigned on this issue. Can someone guide me on getting started here?

AnshumanPati avatar Feb 13 '18 20:02 AnshumanPati

@gdelavald @marceloschmidt Hello, I have just submitted a PR #10064 for this issue. Please take a look and review.

Thanks.

vaibhav4595 avatar Mar 08 '18 19:03 vaibhav4595

Is this issue fixed ??

26prajval98 avatar Mar 15 '18 09:03 26prajval98

I would like to solve this issue and I am a beginner to open source. Can someone helps me or guides me in solving it.

vishnu2112 avatar Jan 24 '19 20:01 vishnu2112

I would like to solve this Issue, in fact I am working on it:)

subham103 avatar Feb 05 '20 08:02 subham103

Very much willing to contribute to this issue but seeing that already couple of approaches (PR #16559 and PR #10064) have been closed for solving this. Are we looking at some other solution to fix this issue?

ConstantTime avatar Nov 18 '21 20:11 ConstantTime

I would like to be assigned on this one.

ankit-jha1210 avatar Feb 12 '22 08:02 ankit-jha1210