FIX: makes sure we don’t track when clicking on recent emojis

This commit is contained in:
Joffrey JAFFEUX 2017-07-21 13:35:55 +02:00
parent c906bd3f22
commit 1ce1953ee1
1 changed files with 4 additions and 1 deletions

View File

@ -259,7 +259,10 @@ export default Ember.Component.extend({
const handler = (event) => {
const code = this._codeForEmojiLink($(event.currentTarget));
if($(event.currentTarget).parents(".section[data-section='recent']").length === 0) {
this._trackEmojiUsage(code);
}
this.sendAction("emojiSelected", code);
if(this.$(".emoji-picker-modal").hasClass("fadeIn")) {