mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Fix custom reaction as a quick one.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user