2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 07:25:46 +00:00

Implement reactions selector above the menu.

This commit is contained in:
John Preston
2022-08-19 15:08:11 +03:00
parent f658cb7e99
commit bd42c23999
34 changed files with 3023 additions and 1074 deletions

View File

@@ -382,4 +382,15 @@ bool ShowReactPremiumError(
return true;
}
void ShowPremiumPromoBox(
not_null<SessionController*> controller,
not_null<HistoryItem*> item) {
const auto &list = controller->session().data().reactions().list(
Data::Reactions::Type::Active);
ShowPremiumPreviewBox(
controller,
PremiumPreview::Reactions,
ExtractDisabledReactions(item->history()->peer, list));
}
} // namespace Window