mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +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,6 +181,7 @@ PossibleItemReactionsRef LookupPossibleReactions(
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
if (allowed.type == AllowedReactionsType::Some) {
|
||||||
for (const auto &id : allowed.some) {
|
for (const auto &id : allowed.some) {
|
||||||
if (!added.contains(id)) {
|
if (!added.contains(id)) {
|
||||||
if (const auto temp = reactions->lookupTemporary(id)) {
|
if (const auto temp = reactions->lookupTemporary(id)) {
|
||||||
|
@ -188,6 +189,7 @@ PossibleItemReactionsRef LookupPossibleReactions(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
result.customAllowed = (allowed.type == AllowedReactionsType::All)
|
result.customAllowed = (allowed.type == AllowedReactionsType::All)
|
||||||
&& premiumPossible;
|
&& premiumPossible;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue