mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 00:46:08 +00:00
Load fullres images of new wallpapers.
This commit is contained in:
@@ -133,6 +133,7 @@ WebPageType ParseWebPageType(const MTPDwebPage &page) {
|
||||
if (type == qstr("photo")) return WebPageType::Photo;
|
||||
if (type == qstr("video")) return WebPageType::Video;
|
||||
if (type == qstr("profile")) return WebPageType::Profile;
|
||||
if (type == qstr("telegram_wallpaper")) return WebPageType::WallPaper;
|
||||
return page.has_cached_page()
|
||||
? WebPageType::ArticleWithIV
|
||||
: WebPageType::Article;
|
||||
@@ -217,6 +218,10 @@ bool WebPageData::applyChanges(
|
||||
pendingTill = newPendingTill;
|
||||
++version;
|
||||
|
||||
if (type == WebPageType::WallPaper) {
|
||||
document->checkWallPaperProperties();
|
||||
}
|
||||
|
||||
replaceDocumentGoodThumbnail();
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user