mirror of https://github.com/zulip/zulip.git
build_emoji: Remove the hack used for displaying number emojis correctly.
This hack was used to fix the broken number emojis in the emoji picker. It was broken because of the partial migration to the iamcal dataset. See issue #4775 for more details.
This commit is contained in:
parent
0940d2cf85
commit
f6c621dab5
|
@ -106,15 +106,6 @@ def generate_sprite_css_files(cache_path, emoji_map, emoji_data):
|
|||
'pos_x': (emoji["sheet_x"] * 100) / 48,
|
||||
'pos_y': (emoji["sheet_y"] * 100) / 48,
|
||||
}
|
||||
# Remove the code below once the migration to iamcal's dataset is complete.
|
||||
emoji_name = emoji['short_name']
|
||||
codepoint = emoji['unified'].lower()
|
||||
if emoji_name in emoji_map and codepoint != emoji_map[emoji_name]:
|
||||
emoji_positions += EMOJI_POS_INFO_TEMPLATE % {
|
||||
'codepoint': emoji_map[emoji_name],
|
||||
'pos_x': (emoji["sheet_x"] * 100) / 48,
|
||||
'pos_y': (emoji["sheet_y"] * 100) / 48,
|
||||
}
|
||||
|
||||
for emojiset in EMOJISETS:
|
||||
SPRITE_CSS_PATH = os.path.join(cache_path, '%s_sprite.css' % (emojiset,))
|
||||
|
|
Loading…
Reference in New Issue