2
0
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:
John Preston
2025-02-26 17:24:07 +04:00
parent 1684465e04
commit c6fd8bcb99
11 changed files with 184 additions and 48 deletions

View File

@@ -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 {