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

Open type="document" with photo as a photo.

Fixes #25600.
This commit is contained in:
John Preston
2023-01-02 15:08:36 +04:00
parent 741b524d71
commit 19350e3846
4 changed files with 8 additions and 1 deletions

View File

@@ -1610,9 +1610,11 @@ Link::Link(
}),
parent->fullId());
} else if (_page->photo) {
if (_page->type == WebPageType::Profile || _page->type == WebPageType::Video) {
if (_page->type == WebPageType::Profile
|| _page->type == WebPageType::Video) {
_photol = createHandler(_page->url);
} else if (_page->type == WebPageType::Photo
|| _page->type == WebPageType::Document
|| _page->siteName == u"Twitter"_q
|| _page->siteName == u"Facebook"_q) {
_photol = std::make_shared<PhotoOpenClickHandler>(