mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Don't allow setting star as quick reaction.
This commit is contained in:
parent
fb252bb644
commit
49e6c4f552
2 changed files with 3 additions and 2 deletions
|
@ -1643,7 +1643,8 @@ void ShowWhoReactedMenu(
|
||||||
const auto reactions = &owner->reactions();
|
const auto reactions = &owner->reactions();
|
||||||
const auto &list = reactions->list(
|
const auto &list = reactions->list(
|
||||||
Data::Reactions::Type::Active);
|
Data::Reactions::Type::Active);
|
||||||
const auto activeNonQuick = (id != reactions->favoriteId())
|
const auto activeNonQuick = !id.paid()
|
||||||
|
&& (id != reactions->favoriteId())
|
||||||
&& (ranges::contains(list, id, &Data::Reaction::id)
|
&& (ranges::contains(list, id, &Data::Reaction::id)
|
||||||
|| (controller->session().premium() && id.custom()));
|
|| (controller->session().premium() && id.custom()));
|
||||||
const auto filler = lifetime.make_state<Ui::WhoReactedListMenu>(
|
const auto filler = lifetime.make_state<Ui::WhoReactedListMenu>(
|
||||||
|
|
|
@ -808,7 +808,7 @@ bool Manager::showContextMenu(
|
||||||
const auto id = std::get_if<ReactionId>(&selected);
|
const auto id = std::get_if<ReactionId>(&selected);
|
||||||
if (!id || id->empty() || _tagsStrip) {
|
if (!id || id->empty() || _tagsStrip) {
|
||||||
return false;
|
return false;
|
||||||
} else if (*id == favorite) {
|
} else if (*id == favorite || id->paid()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
_menu = base::make_unique_q<Ui::PopupMenu>(
|
_menu = base::make_unique_q<Ui::PopupMenu>(
|
||||||
|
|
Loading…
Add table
Reference in a new issue