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

Added view button to webpages.

This commit is contained in:
23rd
2021-10-10 19:11:08 +03:00
parent 1613495425
commit 6163e922b3
10 changed files with 183 additions and 21 deletions

View File

@@ -146,6 +146,20 @@ WebPageType ParseWebPageType(const MTPDwebPage &page) {
return WebPageType::WallPaper;
} else if (type == qstr("telegram_theme")) {
return WebPageType::Theme;
} else if (type == qstr("telegram_channel")) {
return WebPageType::Channel;
} else if (type == qstr("telegram_message")) {
return WebPageType::Message;
} else if (type == qstr("telegram_bot")) {
return WebPageType::Bot;
} else if (type == qstr("telegram_megagroup")) {
return WebPageType::Group;
} else if (type == qstr("telegram_voicechat")) {
return WebPageType::VoiceChat;
} else if (type == qstr("telegram_livestream")) {
return WebPageType::Livestream;
} else if (type == qstr("telegram_user")) {
return WebPageType::User;
} else if (page.vcached_page()) {
return WebPageType::ArticleWithIV;
} else {
@@ -302,4 +316,4 @@ void WebPageData::ApplyChanges(
});
}
session->data().sendWebPageGamePollNotifications();
}
}