2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

stickers by alt suggestions in mentions dropdown

This commit is contained in:
John Preston
2016-01-09 19:24:16 +08:00
parent f66c54ee6b
commit a72a31e722
22 changed files with 471 additions and 149 deletions

View File

@@ -4744,14 +4744,11 @@ bool HistoryGif::dataLoaded() const {
HistorySticker::HistorySticker(DocumentData *document) : HistoryMedia()
, _pixw(1)
, _pixh(1)
, _data(document) {
, _data(document)
, _emoji(_data->sticker()->alt) {
_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);
}
if (EmojiPtr e = emojiFromText(_emoji)) {
_emoji = emojiString(e);
}
}