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

Support grouped media rendering.

This commit is contained in:
John Preston
2017-12-13 22:10:48 +04:00
parent 0a4038d061
commit 4c9931ab02
23 changed files with 2419 additions and 261 deletions

View File

@@ -1201,7 +1201,9 @@ Link::Link(
}
}
_page = (media && media->type() == MediaTypeWebPage) ? static_cast<HistoryWebPage*>(media)->webpage().get() : nullptr;
_page = (media && media->type() == MediaTypeWebPage)
? static_cast<HistoryWebPage*>(media)->webpage().get()
: nullptr;
if (_page) {
mainUrl = _page->url;
if (_page->document) {