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

View File

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