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

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;