Emoji: Eliminate unused images, make sure panel clicks add emoji (#1849)

* Emoji: Ensure that all clicks work by using emoji data directly

* Eliminate a number of unused emoji images from final build

* Re-add the generic sheets directory, which we partially filter
This commit is contained in:
Scott Nonnenberg 2017-12-04 10:19:35 -08:00 committed by GitHub
parent 9c7ba87d6a
commit 2430ee00d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 3 deletions

View file

@ -974,7 +974,7 @@
this.updateMessageFieldSize({});
},
insertEmoji: function(e) {
var colons = ':' + emoji.data[e.unified.toLowerCase()][3][0] + ':';
var colons = ':' + emojiData[e.index].short_name + ':';
var textarea = this.$messageField[0];
if (textarea.selectionStart || textarea.selectionStart == '0') {