Close mediaview on confirm link box.

Fixes #5420.
This commit is contained in:
John Preston 2018-11-26 11:41:26 +04:00
parent 3461f3dfc7
commit 151a64f817

View File

@ -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;