improved emoji strings in sticker description

This commit is contained in:
John Preston 2015-10-27 23:47:55 -04:00
parent 5423abaa19
commit 63dbf7e9ef

View File

@ -4380,6 +4380,10 @@ HistorySticker::HistorySticker(DocumentData *document) : HistoryMedia()
data->thumb->load();
if (!data->sticker()->alt.isEmpty()) {
_emoji = data->sticker()->alt;
int32 elen = 0;
if (EmojiPtr e = emojiFromText(_emoji.constData(), _emoji.constEnd(), elen)) {
_emoji = emojiString(e);
}
}
}