Open documents-in-web-previews in-app.

This commit is contained in:
John Preston 2023-10-29 08:48:45 +04:00
parent 94ac9f93fa
commit eaf30d58be

View File

@ -801,7 +801,11 @@ ClickHandlerPtr WebPage::replaceAttachLink(
if (!_attach->isReadyForOpen() if (!_attach->isReadyForOpen()
|| (_siteName.isEmpty() || (_siteName.isEmpty()
&& _title.isEmpty() && _title.isEmpty()
&& _description.isEmpty())) { && _description.isEmpty())
|| (_data->document
&& !_data->document->isWallPaper()
&& !_data->document->isTheme())
|| !_data->collage.items.empty()) {
return link; return link;
} }
return _openl; return _openl;