mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Check custom reactions in channels better.
This commit is contained in:
@@ -181,6 +181,7 @@ PossibleItemReactionsRef LookupPossibleReactions(
|
||||
}
|
||||
return true;
|
||||
});
|
||||
if (allowed.type == AllowedReactionsType::Some) {
|
||||
for (const auto &id : allowed.some) {
|
||||
if (!added.contains(id)) {
|
||||
if (const auto temp = reactions->lookupTemporary(id)) {
|
||||
@@ -188,6 +189,7 @@ PossibleItemReactionsRef LookupPossibleReactions(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
result.customAllowed = (allowed.type == AllowedReactionsType::All)
|
||||
&& premiumPossible;
|
||||
}
|
||||
|
Reference in New Issue
Block a user