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

Save correct starsPerMessage for admins.

This commit is contained in:
John Preston
2025-07-02 12:04:29 +04:00
parent 13ecc6a56b
commit 33671e7737
3 changed files with 24 additions and 3 deletions

View File

@@ -860,6 +860,9 @@ public:
void sentFromScheduled(SentFromScheduled value);
[[nodiscard]] rpl::producer<SentFromScheduled> sentFromScheduled() const;
[[nodiscard]] int commonStarsPerMessage(
not_null<ChannelData*> channel) const;
void clearLocalStorage();
private:
@@ -1165,6 +1168,9 @@ private:
not_null<ChannelData*>,
ChannelId>> _postponedMonoforumLinkedIds;
// This one from `channel`, not `channelFull`.
base::flat_map<not_null<ChannelData*>, int> _commonStarsPerMessage;
MessageIdsList _mimeForwardIds;
std::weak_ptr<CreditsSubsRebuilder> _creditsSubsRebuilder;