Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix emoji flags detection #1162

Merged
merged 2 commits into from
May 3, 2017

Conversation

maximbaz
Copy link
Contributor

@maximbaz maximbaz commented May 3, 2017

When you send a message containing only emoji, it will have a larger font.

When you send a message containing only flag emoji (like 🇪🇺), it will not be recognized as emoji-only and thus will have a regular smaller font.

It is just a matter of adding extra range defining which symbols compose flags emojis (and in fact they consist of regional indicator symbol letters)

@@ -32,6 +32,7 @@ describe 'z.util.emoji', ->
expect(z.util.emoji.includes_only_emojies('☕')).toBeTruthy()
expect(z.util.emoji.includes_only_emojies('⛄')).toBeTruthy()
expect(z.util.emoji.includes_only_emojies('⚽')).toBeTruthy()
expect(z.util.emoji.includes_only_emojies('🇩🇰')).toBeTruthy()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice touch 🇩🇰

@herrmannplatz herrmannplatz merged commit 68626db into wireapp:dev May 3, 2017
lipis added a commit that referenced this pull request May 3, 2017
* 'eslint' of github.com:wireapp/wire-webapp:
  Updated translations (#1168)
  Skipping HTML comments (#1159)
  ES6: migrated "user" (#1138)
  Fix linting
  Return Object in ClientMapper.update_client() (#1158)
  chore(package): update eslint-plugin-jsdoc to version 3.0.2 (#1164)
  dont display blocked top people (#1163)
  Per-user count-based alphabetic emoji ordering (#1126)
  Fix removeEventListener on mouse click, fix emoji popup reappearing after a typo (#1133)
  Fix emoji flags detection (#1162)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants