2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Added ability to show photo from Controller for sections.

This commit is contained in:
23rd
2021-06-16 23:24:35 +03:00
committed by John Preston
parent 7885be4a94
commit eefa7263b5
16 changed files with 91 additions and 12 deletions

View File

@@ -272,7 +272,7 @@ Photo::Photo(
not_null<PhotoData*> photo)
: ItemBase(delegate, parent)
, _data(photo)
, _link(std::make_shared<PhotoOpenClickHandler>(photo, parent->fullId())) {
, _link(std::make_shared<PhotoOpenClickHandlerOld>(photo, parent->fullId())) {
if (_data->inlineThumbnailBytes().isEmpty()
&& (_data->hasExact(Data::PhotoSize::Small)
|| _data->hasExact(Data::PhotoSize::Thumbnail))) {
@@ -1461,7 +1461,7 @@ Link::Link(
} else if (_page->type == WebPageType::Photo
|| _page->siteName == qstr("Twitter")
|| _page->siteName == qstr("Facebook")) {
_photol = std::make_shared<PhotoOpenClickHandler>(
_photol = std::make_shared<PhotoOpenClickHandlerOld>(
_page->photo,
parent->fullId());
} else {