RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.84k stars 10.76k forks source link

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

Closed alexbrazier closed 2 years ago

alexbrazier commented 7 years ago

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

FibreFoX commented 7 years ago

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)

happy-dev commented 7 years ago

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

rbprado commented 7 years ago

@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.

happy-dev commented 7 years ago

Quite busy this week but I have a look ASAP

marceloschmidt commented 7 years ago

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.

rbprado commented 7 years ago

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.

FibreFoX commented 7 years ago

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

catchabhisek commented 7 years ago

@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 ??

FibreFoX commented 7 years ago

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.

abhigyank commented 7 years ago

I would like to be assigned on this one.

simonv3 commented 7 years ago

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.

FibreFoX commented 7 years ago

@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:

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

vchrombie commented 6 years ago

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

AnshumanPati commented 6 years ago

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

vaibhav4595 commented 6 years ago

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

Thanks.

26prajval98 commented 6 years ago

Is this issue fixed ??

vishnu2112 commented 5 years ago

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.

subham103 commented 4 years ago

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

ConstantTime commented 3 years ago

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?

ankit-jha1210 commented 2 years ago

I would like to be assigned on this one.

sidharthkumar2019 commented 2 years ago

Is it fixed or not?

prachi-the-comder commented 2 years ago

I would like to assign for this issue.

hugocostadev commented 2 years ago

As commented in this PR, the (y) is supported and its already working, closing it. Thanks 👍 https://github.com/RocketChat/Rocket.Chat/pull/16559#pullrequestreview-369771131