Fix custom reactions in channels.

This commit is contained in:
John Preston 2023-12-01 13:00:52 +04:00
parent 28acaf06ad
commit 8e2240d9d9

View file

@ -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;
}