From 999fa39d7ce1e58674b338f6a3b64cd7e93df976 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 13 Mar 2018 13:29:56 +0300 Subject: [PATCH] Fix shared links layout for webpage previews. Fixes #4489. --- Telegram/SourceFiles/overview/overview_layout.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Telegram/SourceFiles/overview/overview_layout.cpp b/Telegram/SourceFiles/overview/overview_layout.cpp index 55ff0179d0..169a771819 100644 --- a/Telegram/SourceFiles/overview/overview_layout.cpp +++ b/Telegram/SourceFiles/overview/overview_layout.cpp @@ -1233,10 +1233,7 @@ Link::Link( } } - // #TODO webpage - //_page = (media && media->type() == MediaTypeWebPage) - // ? static_cast(media)->webpage().get() - // : nullptr; + _page = media ? media->webpage() : nullptr; if (_page) { mainUrl = _page->url; if (_page->document) {