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:
@@ -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
|
||||
|
Reference in New Issue
Block a user