mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 00:46:08 +00:00
Update API scheme on layer 145.
This commit is contained in:
@@ -351,10 +351,11 @@ bool ShowSendPremiumError(
|
||||
const auto type = peer->isBroadcast()
|
||||
? ReactionDisableType::Channel
|
||||
: ReactionDisableType::Group;
|
||||
if (const auto allowed = Data::PeerReactionsFilter(peer).allowed) {
|
||||
const auto &allowed = Data::PeerAllowedReactions(peer);
|
||||
if (!allowed.some.empty()) {
|
||||
for (const auto &reaction : list) {
|
||||
if (reaction.premium
|
||||
&& !allowed->contains(reaction.id.emoji())) {
|
||||
&& !ranges::contains(allowed.some, reaction.id)) {
|
||||
result.emplace(reaction.id, type);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user