2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Allow paid reaction even after limit is reached.

This commit is contained in:
John Preston
2024-08-13 08:42:28 +02:00
parent 284f1a5210
commit 0a1ddddd81
4 changed files with 10 additions and 5 deletions

View File

@@ -966,7 +966,8 @@ void ChannelData::setAllowedReactions(Data::AllowedReactions value) {
if (_allowedReactions != value) {
const auto enabled = [](const Data::AllowedReactions &allowed) {
return (allowed.type != Data::AllowedReactionsType::Some)
|| !allowed.some.empty();
|| !allowed.some.empty()
|| allowed.paidEnabled;
};
const auto was = enabled(_allowedReactions);
_allowedReactions = std::move(value);