2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

New premium promo section about tags.

This commit is contained in:
John Preston
2024-01-26 17:19:28 +04:00
parent 87df90227e
commit f324c53440
9 changed files with 24 additions and 7 deletions

View File

@@ -530,12 +530,8 @@ bool ShowReactPremiumError(
|| item->history()->peer->isBroadcast()) {
return false;
} else if (item->reactionsAreTags()) {
const auto &list = controller->session().data().reactions().list(
Data::Reactions::Type::Tags);
const auto i = ranges::find(list, id, &Data::Reaction::id);
if (i != end(list)) {
return false;
}
ShowPremiumPreviewBox(controller, PremiumPreview::TagsForMessages);
return true;
} else if (!id.custom()) {
return false;
}