Check custom reactions in channels better.

This commit is contained in:
John Preston 2023-12-01 13:05:06 +04:00
parent 8e2240d9d9
commit c86ca6a61a

View file

@ -181,10 +181,12 @@ PossibleItemReactionsRef LookupPossibleReactions(
} }
return true; return true;
}); });
for (const auto &id : allowed.some) { if (allowed.type == AllowedReactionsType::Some) {
if (!added.contains(id)) { for (const auto &id : allowed.some) {
if (const auto temp = reactions->lookupTemporary(id)) { if (!added.contains(id)) {
result.recent.push_back(temp); if (const auto temp = reactions->lookupTemporary(id)) {
result.recent.push_back(temp);
}
} }
} }
} }