2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 15:35:51 +00:00

Closed beta 10019002: redesign, fix emoji pan hide after inline bot.

This commit is contained in:
John Preston
2016-11-06 21:08:52 +03:00
parent b3d1602354
commit dac96bfc4a
8 changed files with 22 additions and 20 deletions

View File

@@ -501,6 +501,7 @@ void MediaPreviewWidget::showPreview(PhotoData *photo) {
startShow();
_photo = photo;
_document = nullptr;
fillEmojiString();
resetGifAndCache();
}
@@ -548,7 +549,9 @@ void MediaPreviewWidget::fillEmojiString() {
return result;
};
if (auto sticker = _document->sticker()) {
if (_photo) {
_emojiList.clear();
} else if (auto sticker = _document->sticker()) {
auto &inputSet = sticker->set;
if (inputSet.type() == mtpc_inputStickerSetID) {
_emojiList = getStickerEmojiList(inputSet.c_inputStickerSetID().vid.v);