Don't allow setting star as quick reaction.

This commit is contained in:
John Preston 2024-08-09 17:37:39 +02:00
parent fb252bb644
commit 49e6c4f552
2 changed files with 3 additions and 2 deletions

View file

@ -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>(

View file

@ -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>(