2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Show repost info on story view.

This commit is contained in:
John Preston
2023-11-24 13:02:03 +04:00
parent 23a0413113
commit 78897dd143
15 changed files with 540 additions and 24 deletions

View File

@@ -181,6 +181,11 @@ public:
void applyViewsCounts(const MTPDstoryViews &data);
[[nodiscard]] TimeId lastUpdateTime() const;
[[nodiscard]] bool repost() const;
[[nodiscard]] PeerData *repostSourcePeer() const;
[[nodiscard]] QString repostSourceName() const;
[[nodiscard]] StoryId repostSourceId() const;
private:
struct ViewsCounts {
int views = 0;
@@ -203,6 +208,9 @@ private:
const StoryId _id = 0;
const not_null<PeerData*> _peer;
PeerData * const _repostSourcePeer = nullptr;
const QString _repostSourceName;
const StoryId _repostSourceId = 0;
Data::ReactionId _sentReactionId;
StoryMedia _media;
TextWithEntities _caption;