mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 13:17:08 +02:00
Check custom reactions in channels better.
This commit is contained in:
parent
8e2240d9d9
commit
c86ca6a61a
1 changed files with 6 additions and 4 deletions
|
@ -181,10 +181,12 @@ 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);
|
||||
if (allowed.type == AllowedReactionsType::Some) {
|
||||
for (const auto &id : allowed.some) {
|
||||
if (!added.contains(id)) {
|
||||
if (const auto temp = reactions->lookupTemporary(id)) {
|
||||
result.recent.push_back(temp);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue