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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user