FIX: Emoji not rendering using plugin api.

This commit is contained in:
Guo Xiang Tan 2016-11-21 14:33:17 +08:00
parent e2c87da42a
commit 07717dfaa7
1 changed files with 2 additions and 2 deletions

View File

@ -94,8 +94,8 @@ class PluginApi {
} else if (result.emoji) {
iconBody = result.emoji.split('|').map(name => {
let widgetAttrs = { name };
if (result.title) widgetAttrs.title = true;
dec.attach('emoji', widgetAttrs);
if (result.emojiTitle) widgetAttrs.title = true;
return dec.attach('emoji', widgetAttrs);
});
}