Fix not all emoji-only messages being detected as such #368
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Some emoji-only messages were not considered emoji-only because of a unicode variation selector (U+FE0F) being sent along.
Without the fix (:+1: are smaller than the other emojis)
![image](https://user-images.githubusercontent.com/35173023/157464536-c4223271-0358-4fc3-a922-af512ebb2ea8.png)
With the fix
![image](https://user-images.githubusercontent.com/35173023/157464966-fda7d0f9-9f47-4d3e-b2be-d9f41e731be4.png)
Type of change
Checklist:
Preview: https://6228bebac3982500664037c5--pr-cinny.netlify.app
⚠️ Exercise caution. Use test accounts. ⚠️