2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Custom context menu for saved-tags reactions.

This commit is contained in:
John Preston
2024-01-09 13:11:06 +04:00
parent d1a0dfbb97
commit 3c6037a798
6 changed files with 75 additions and 4 deletions

View File

@@ -179,6 +179,7 @@ PossibleItemReactionsRef LookupPossibleReactions(
}
}
result.customAllowed = premiumPossible;
result.tags = true;
} else if (limited) {
result.recent.reserve(all.size());
add([&](const Reaction &reaction) {
@@ -243,11 +244,12 @@ PossibleItemReactionsRef LookupPossibleReactions(
PossibleItemReactions::PossibleItemReactions(
const PossibleItemReactionsRef &other)
: recent(other.recent | ranges::views::transform([](const auto &value) {
: recent(other.recent | ranges::views::transform([](const auto &value) {
return *value;
}) | ranges::to_vector)
, morePremiumAvailable(other.morePremiumAvailable)
, customAllowed(other.customAllowed) {
, customAllowed(other.customAllowed)
, tags(other.tags){
}
Reactions::Reactions(not_null<Session*> owner)