|
|
|
|
@ -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 |
|
|
|
|
|