2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Use photo as video thumbnail in WebPageData.

This commit is contained in:
John Preston
2018-10-25 13:24:45 +04:00
parent 550b67236e
commit 4837117719
9 changed files with 87 additions and 7 deletions

View File

@@ -9,6 +9,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_types.h"
namespace Images {
class Source;
} // namespace Images
namespace Storage {
namespace Cache {
struct Key;
@@ -158,6 +162,7 @@ public:
Storage::Cache::Key goodThumbnailCacheKey() const;
void setGoodThumbnail(QImage &&image, QByteArray &&bytes);
void refreshGoodThumbnail();
void replaceGoodThumbnail(std::unique_ptr<Images::Source> &&source);
void setRemoteLocation(
int32 dc,