mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Edit paid messages exceptions.
This commit is contained in:
@@ -869,15 +869,11 @@ int ChannelData::starsPerMessage() const {
|
||||
}
|
||||
|
||||
void ChannelData::setStarsPerMessage(int stars) {
|
||||
if (!mgInfo || starsPerMessage() == stars) {
|
||||
return;
|
||||
}
|
||||
const auto removed = mgInfo->_starsPerMessage && !stars;
|
||||
mgInfo->_starsPerMessage = stars;
|
||||
session().changes().peerUpdated(this, UpdateFlag::StarsPerMessage);
|
||||
if (removed) {
|
||||
session().local().clearPeerTrusted(id);
|
||||
if (mgInfo && starsPerMessage() != stars) {
|
||||
mgInfo->_starsPerMessage = stars;
|
||||
session().changes().peerUpdated(this, UpdateFlag::StarsPerMessage);
|
||||
}
|
||||
checkTrustedPayForMessage();
|
||||
}
|
||||
|
||||
int ChannelData::peerGiftsCount() const {
|
||||
|
Reference in New Issue
Block a user