2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +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

@@ -47,6 +47,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_scheduled_messages.h"
#include "data/data_cloud_themes.h"
#include "data/data_streaming.h"
#include "data/data_media_rotation.h"
#include "base/platform/base_platform_info.h"
#include "base/unixtime.h"
#include "base/call_delayed.h"
@@ -192,7 +193,8 @@ Session::Session(not_null<Main::Session*> session)
, _groups(this)
, _scheduledMessages(std::make_unique<ScheduledMessages>(this))
, _cloudThemes(std::make_unique<CloudThemes>(session))
, _streaming(std::make_unique<Streaming>(this)) {
, _streaming(std::make_unique<Streaming>(this))
, _mediaRotation(std::make_unique<MediaRotation>()) {
_cache->open(Local::cacheKey());
_bigFileCache->open(Local::cacheBigFileKey());