From 151a64f817a00dfc94691a58f2214e3ca85fa0db Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 26 Nov 2018 11:41:26 +0400 Subject: [PATCH] Close mediaview on confirm link box. Fixes #5420. --- Telegram/SourceFiles/core/click_handler_types.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Telegram/SourceFiles/core/click_handler_types.cpp b/Telegram/SourceFiles/core/click_handler_types.cpp index 3fb82c161..cb8768d04 100644 --- a/Telegram/SourceFiles/core/click_handler_types.cpp +++ b/Telegram/SourceFiles/core/click_handler_types.cpp @@ -158,6 +158,7 @@ void HiddenUrlClickHandler::Open(QString url, QVariant context) { } else { const auto parsedUrl = QUrl::fromUserInput(url); if (UrlRequiresConfirmation(url)) { + Messenger::Instance().hideMediaView(); const auto displayUrl = parsedUrl.isValid() ? parsedUrl.toDisplayString() : url;