2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Implement PoC custom reaction selection.

This commit is contained in:
John Preston
2022-08-16 18:52:49 +03:00
parent cece9cf09b
commit 09124f6424
24 changed files with 449 additions and 152 deletions

View File

@@ -351,7 +351,7 @@ bool ShowSendPremiumError(
const auto type = peer->isBroadcast()
? ReactionDisableType::Channel
: ReactionDisableType::Group;
if (const auto allowed = Data::PeerAllowedReactions(peer)) {
if (const auto allowed = Data::PeerReactionsFilter(peer).allowed) {
for (const auto &reaction : list) {
if (reaction.premium
&& !allowed->contains(reaction.id.emoji())) {