Don't show emoji list on ':' or ascii

pull/3186/head
Marcelo Schmidt 10 years ago
parent e4d4ad2b27
commit 400a4d6bf3
No known key found for this signature in database
GPG Key ID: CA48C21A7B66097E
  1. 22
      packages/rocketchat-ui-message/message/popup/messagePopupConfig.coffee

@ -177,26 +177,8 @@ Template.messagePopupConfig.helpers
results = []
key = ':' + filter
# show common used emojis, when use input a single ':'
if filter == ''
commonEmojis = [
':laughing:',
':smiley:',
':stuck_out_tongue:',
':sunglasses:',
':wink:',
':innocent:',
':flushed:',
':disappointed:',
':cry:',
':heart:',
':broken_heart:'
]
for shortname in commonEmojis
results.push
_id: shortname
data: collection[shortname]
return results;
if RocketChat.emoji.asciiList[key] or filter.length < 2
return []
# use ascii
for shortname, value of RocketChat.emoji.asciiList

Loading…
Cancel
Save