diff --git a/Telegram/SourceFiles/data/data_session.cpp b/Telegram/SourceFiles/data/data_session.cpp index 488a524a12..ea2b4012eb 100644 --- a/Telegram/SourceFiles/data/data_session.cpp +++ b/Telegram/SourceFiles/data/data_session.cpp @@ -29,6 +29,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "media/streaming/media_streaming_loader.h" // unique_ptr #include "media/streaming/media_streaming_reader.h" // make_shared #include "boxes/abstract_box.h" +#include "platform/platform_info.h" #include "passport/passport_form_controller.h" #include "window/themes/window_theme.h" #include "lang/lang_keys.h" // tr::lng_deleted(tr::now) in user name @@ -205,6 +206,14 @@ Session::Session(not_null session) _cache->open(Local::cacheKey()); _bigFileCache->open(Local::cacheBigFileKey()); + if constexpr (Platform::IsLinux()) { + const auto wasVersion = Local::oldMapVersion(); + if (wasVersion >= 1007011 && wasVersion < 1007015) { + _bigFileCache->clear(); + _cache->clearByTag(Data::kImageCacheTag); + } + } + setupContactViewsViewer(); setupChannelLeavingViewer(); setupPeerNameViewer(); diff --git a/Telegram/SourceFiles/ui/image/image.cpp b/Telegram/SourceFiles/ui/image/image.cpp index cd6d6249de..fb3bb58292 100644 --- a/Telegram/SourceFiles/ui/image/image.cpp +++ b/Telegram/SourceFiles/ui/image/image.cpp @@ -548,17 +548,17 @@ const QPixmap &Image::pix( checkSource(); if (w <= 0 || !width() || !height()) { - w = width(); - } else { - w *= cIntRetinaFactor(); - h *= cIntRetinaFactor(); - } + w = width(); + } else { + w *= cIntRetinaFactor(); + h *= cIntRetinaFactor(); + } auto options = Option::Smooth | Option::None; auto k = PixKey(w, h, options); auto i = _sizesCache.constFind(k); if (i == _sizesCache.cend()) { auto p = pixNoCache(origin, w, h, options); - p.setDevicePixelRatio(cRetinaFactor()); + p.setDevicePixelRatio(cRetinaFactor()); i = _sizesCache.insert(k, p); ActiveCache().increment(ComputeUsage(*i)); } diff --git a/Telegram/SourceFiles/ui/widgets/widgets.style b/Telegram/SourceFiles/ui/widgets/widgets.style index 0a88651295..1eb6db464e 100644 --- a/Telegram/SourceFiles/ui/widgets/widgets.style +++ b/Telegram/SourceFiles/ui/widgets/widgets.style @@ -1210,7 +1210,7 @@ InfoTopBar { } LevelMeter { - height: pixels; + height: pixels; lineWidth: pixels; lineSpacing: pixels; lineCount: int; @@ -1219,7 +1219,7 @@ LevelMeter { } defaultLevelMeter: LevelMeter { - height: 18px; + height: 18px; lineWidth: 3px; lineSpacing: 5px; lineCount: 44; diff --git a/Telegram/ThirdParty/rlottie b/Telegram/ThirdParty/rlottie index 40ccf08444..302b7f98b4 160000 --- a/Telegram/ThirdParty/rlottie +++ b/Telegram/ThirdParty/rlottie @@ -1 +1 @@ -Subproject commit 40ccf084445c60a32d72d4811edf0efd0580dcaa +Subproject commit 302b7f98b4f6846dc2414d9a5dc6c44864b92dd3 diff --git a/Telegram/gyp/Telegram.gyp b/Telegram/gyp/Telegram.gyp index 27e180de30..0bf2dce390 100644 --- a/Telegram/gyp/Telegram.gyp +++ b/Telegram/gyp/Telegram.gyp @@ -118,7 +118,7 @@ '<@(style_files)', '