2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Allow rotating content in media viewer.

This commit is contained in:
John Preston
2020-02-05 19:27:53 +04:00
parent 91244d5211
commit 4544b091a0
17 changed files with 289 additions and 89 deletions

View File

@@ -60,6 +60,7 @@ class WallPaper;
class ScheduledMessages;
class CloudThemes;
class Streaming;
class MediaRotation;
class Session final {
public:
@@ -92,6 +93,9 @@ public:
[[nodiscard]] Streaming &streaming() const {
return *_streaming;
}
[[nodiscard]] MediaRotation &mediaRotation() const {
return *_mediaRotation;
}
[[nodiscard]] MsgId nextNonHistoryEntryId() {
return ++_nonHistoryEntryId;
}
@@ -984,6 +988,7 @@ private:
std::unique_ptr<ScheduledMessages> _scheduledMessages;
std::unique_ptr<CloudThemes> _cloudThemes;
std::unique_ptr<Streaming> _streaming;
std::unique_ptr<MediaRotation> _mediaRotation;
MsgId _nonHistoryEntryId = ServerMaxMsgId;
rpl::lifetime _lifetime;