2
0
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:
John Preston
2022-08-22 12:15:34 +03:00
parent 33b266175d
commit f72092a261
25 changed files with 165 additions and 114 deletions

View File

@@ -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);
}
}