From 8e2240d9d98e73186f00465ca1ac286efcb3b1d3 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 1 Dec 2023 13:00:52 +0400 Subject: [PATCH] Fix custom reactions in channels. --- Telegram/SourceFiles/data/data_message_reactions.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Telegram/SourceFiles/data/data_message_reactions.cpp b/Telegram/SourceFiles/data/data_message_reactions.cpp index 7aa820101..664c68715 100644 --- a/Telegram/SourceFiles/data/data_message_reactions.cpp +++ b/Telegram/SourceFiles/data/data_message_reactions.cpp @@ -181,6 +181,13 @@ PossibleItemReactionsRef LookupPossibleReactions( } return true; }); + for (const auto &id : allowed.some) { + if (!added.contains(id)) { + if (const auto temp = reactions->lookupTemporary(id)) { + result.recent.push_back(temp); + } + } + } result.customAllowed = (allowed.type == AllowedReactionsType::All) && premiumPossible; }