mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Implement improved allowed reactions editing.
This commit is contained in:
@@ -140,6 +140,9 @@ PossibleItemReactionsRef LookupPossibleReactions(
|
||||
if ((allowed.type == AllowedReactionsType::Some)
|
||||
&& !ranges::contains(allowed.some, id)) {
|
||||
return false;
|
||||
} else if (id.custom()
|
||||
&& allowed.type == AllowedReactionsType::Default) {
|
||||
return false;
|
||||
} else if (reaction.premium
|
||||
&& !session->premium()
|
||||
&& !ranges::contains(all, id, &MessageReaction::id)) {
|
||||
|
Reference in New Issue
Block a user