mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 06:55:58 +00:00
Edit paid messages exceptions.
This commit is contained in:
@@ -543,13 +543,10 @@ int UserData::starsPerMessage() const {
|
||||
|
||||
void UserData::setStarsPerMessage(int stars) {
|
||||
if (_starsPerMessage != stars) {
|
||||
const auto removed = _starsPerMessage && !stars;
|
||||
_starsPerMessage = stars;
|
||||
session().changes().peerUpdated(this, UpdateFlag::StarsPerMessage);
|
||||
if (removed) {
|
||||
session().local().clearPeerTrusted(id);
|
||||
}
|
||||
}
|
||||
checkTrustedPayForMessage();
|
||||
}
|
||||
|
||||
bool UserData::canAddContact() const {
|
||||
|
Reference in New Issue
Block a user