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

Show star rating preview.

This commit is contained in:
John Preston
2025-08-01 16:13:15 +04:00
parent e1b2f940ad
commit 62c9666013
9 changed files with 94 additions and 11 deletions

View File

@@ -72,6 +72,7 @@ class BusinessInfo;
struct ReactionId;
struct UnavailableReason;
struct CreditsStatusSlice;
struct StarsRatingPending;
struct UniqueGift;
struct RepliesReadTillUpdate {
@@ -872,6 +873,9 @@ public:
[[nodiscard]] int commonStarsPerMessage(
not_null<const ChannelData*> channel) const;
void setPendingStarsRating(StarsRatingPending value);
[[nodiscard]] StarsRatingPending pendingStarsRating() const;
void clearLocalStorage();
private:
@@ -1226,6 +1230,8 @@ private:
MsgId _nonHistoryEntryId = ShortcutMaxMsgId;
std::unique_ptr<StarsRatingPending> _pendingStarsRating;
rpl::lifetime _lifetime;
};