2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Minimal emoji sets support.

This commit is contained in:
John Preston
2022-07-08 22:07:14 +04:00
parent afc7b1da62
commit ddd5021966
12 changed files with 182 additions and 49 deletions

View File

@@ -401,6 +401,15 @@ TabbedSelector::TabbedSelector(
refreshStickers();
}, lifetime());
}
if (hasEmojiTab()) {
session().data().stickers().emojiSetInstalled(
) | rpl::start_with_next([=](uint64 setId) {
_tabsSlider->setActiveSection(indexByType(SelectorTab::Emoji));
emoji()->showCustomSet(setId);
_showRequests.fire({});
}, lifetime());
}
//setAttribute(Qt::WA_AcceptTouchEvents);
setAttribute(Qt::WA_OpaquePaintEvent, false);
showAll();
@@ -772,6 +781,9 @@ void TabbedSelector::showStarted() {
if (hasMasksTab()) {
session().api().updateMasks();
}
if (hasEmojiTab()) {
session().api().updateCustomEmoji();
}
currentTab()->widget()->refreshRecent();
currentTab()->widget()->preloadImages();
_a_slide.stop();