2
0
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:
John Preston
2022-08-30 13:21:58 +04:00
parent 021e275336
commit 5e81c65ea6
9 changed files with 291 additions and 163 deletions

View File

@@ -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)) {