TheGreenPig / Apate

A BetterDiscord Plugin that allows End-to-End encryption and hiding messages in messages!
65 stars 17 forks source link

Supports emojis in the hidden message #12

Closed fabJunior closed 3 years ago

fabJunior commented 3 years ago

I found a way to support custom emojis in the hidden messages.

When someone tries to send an emoji, it'll be converted into this format: [emojiName:emojiId.extension] So for example : [blobthumbsup:882203306217320469.png]

It works with .png and .gif, however for the latter the issue is that the gif will autoplay all the time, which may be bothering for some people. A solution would be perhaps to have a setting which enables/disables gif emojis (thus using the .png variant).

Another possible improvement would be adding a css rule to vertically center the text in the div, since when there's an emoji there's a bigger gap above the text than bellow it.

TheGreenPig commented 3 years ago

I will simply check if animate is turned off, and if so, display the png version.