2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Track stars-per-message for users and channels.

This commit is contained in:
John Preston
2025-02-13 14:12:19 +04:00
parent f2aa3afbbb
commit 45c7829cd8
10 changed files with 239 additions and 102 deletions

View File

@@ -179,6 +179,9 @@ public:
[[nodiscard]] bool canSendIgnoreRequirePremium() const;
[[nodiscard]] bool readDatesPrivate() const;
[[nodiscard]] int starsPerMessage() const;
void setStarsPerMessage(int stars);
[[nodiscard]] bool canShareThisContact() const;
[[nodiscard]] bool canAddContact() const;
@@ -268,6 +271,7 @@ private:
Data::Birthday _birthday;
int _commonChatsCount = 0;
int _peerGiftsCount = 0;
int _starsPerMessage = 0;
ContactStatus _contactStatus = ContactStatus::Unknown;
CallsStatus _callsStatus = CallsStatus::Unknown;