2
0
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:
John Preston
2019-01-16 16:25:29 +04:00
parent 04350af96f
commit 0f9c2a62fe
16 changed files with 290 additions and 168 deletions

View File

@@ -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;