mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
Fix custom reaction as a quick one.
This commit is contained in:
parent
b5098038d0
commit
a97d5e80c7
1 changed files with 9 additions and 0 deletions
|
@ -261,6 +261,15 @@ PossibleItemReactionsRef LookupPossibleReactions(
|
|||
}
|
||||
result.customAllowed = (allowed.type == AllowedReactionsType::All)
|
||||
&& premiumPossible;
|
||||
|
||||
const auto favoriteId = reactions->favoriteId();
|
||||
if (favoriteId.custom()
|
||||
&& result.customAllowed
|
||||
&& !ranges::contains(result.recent, favoriteId, &Reaction::id)) {
|
||||
if (const auto temp = reactions->lookupTemporary(favoriteId)) {
|
||||
result.recent.insert(begin(result.recent), temp);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!item->reactionsAreTags()) {
|
||||
const auto toFront = [&](Data::ReactionId id) {
|
||||
|
|
Loading…
Add table
Reference in a new issue