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

Generate previews for cloud theme links.

This commit is contained in:
John Preston
2019-09-09 14:56:05 +03:00
parent 6d29dc3b36
commit ee5423762a
20 changed files with 193 additions and 80 deletions

View File

@@ -139,6 +139,8 @@ WebPageType ParseWebPageType(const MTPDwebPage &page) {
return WebPageType::Profile;
} else if (type == qstr("telegram_background")) {
return WebPageType::WallPaper;
} else if (type == qstr("telegram_theme")) {
return WebPageType::Theme;
} else if (page.vcached_page()) {
return WebPageType::ArticleWithIV;
} else {