mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-17 22:57:11 +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 &list = reactions->list(
|
||||
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)
|
||||
|| (controller->session().premium() && id.custom()));
|
||||
const auto filler = lifetime.make_state<Ui::WhoReactedListMenu>(
|
||||
|
|
|
@ -808,7 +808,7 @@ bool Manager::showContextMenu(
|
|||
const auto id = std::get_if<ReactionId>(&selected);
|
||||
if (!id || id->empty() || _tagsStrip) {
|
||||
return false;
|
||||
} else if (*id == favorite) {
|
||||
} else if (*id == favorite || id->paid()) {
|
||||
return true;
|
||||
}
|
||||
_menu = base::make_unique_q<Ui::PopupMenu>(
|
||||
|
|
Loading…
Add table
Reference in a new issue