2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

Request default and recent emoji statuses.

This commit is contained in:
John Preston
2022-08-30 19:21:14 +04:00
parent b2d72e2541
commit 923e725e18
15 changed files with 549 additions and 87 deletions

View File

@@ -872,6 +872,16 @@ void TabbedSelector::showPromoForPremiumEmoji() {
}, lifetime());
}
void TabbedSelector::provideRecentEmoji(
const std::vector<DocumentId> &customRecentList) {
for (const auto &tab : _tabs) {
if (tab.type() == SelectorTab::Emoji) {
const auto emoji = static_cast<EmojiListWidget*>(tab.widget());
emoji->provideRecent(customRecentList);
}
}
}
void TabbedSelector::checkRestrictedPeer() {
if (_currentPeer) {
const auto error = (_currentTabType == SelectorTab::Stickers)