emoji: Migrate bugdown emoji to use sprite sheets.

This commit switches to use sprite sheets for rendering emojis
in all the remaining places, i.e., message bodies and composebox
typeahead. This commit also includes some changes to notifications.py
file so that the spans used for rendering emojis can be converted
to corresponding image tags so that we don't break the emoji rendering
in missed message emails since we can't use sprite sheets there.

As part of switching the bugdown system to use sprite sheets, we need
to switch the name_to_codepoint mappings to match the new sprite
sheets.  This has the side effect of fixing a bunch of emoji like
numbers and flag emoji in the emoji pickers.

Fixes: #3895.
Fixes: #3972.
This commit is contained in:
Harshit Bansal
2017-09-27 17:39:42 +00:00
committed by Tim Abbott
parent d3bfc132fb
commit 5b5bcce098
18 changed files with 165 additions and 85 deletions

View File

@@ -14,7 +14,7 @@ exports.open_reactions_popover = function () {
};
function send_reaction_ajax(message_id, emoji_name, operation) {
if (!emoji.emojis_by_name[emoji_name] && !emoji.active_realm_emojis[emoji_name]) {
if (!emoji_codes.name_to_codepoint[emoji_name] && !emoji.active_realm_emojis[emoji_name]) {
// Emoji doesn't exist
return;
}