From 2ede53e0ee623cffd7b64664cb26056c50637eda Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 12 May 2020 16:15:22 +0400 Subject: [PATCH] Always try to open new provided URL. Fixes #6941. --- Telegram/SourceFiles/core/sandbox.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Telegram/SourceFiles/core/sandbox.cpp b/Telegram/SourceFiles/core/sandbox.cpp index 46c967b4f..da33fa951 100644 --- a/Telegram/SourceFiles/core/sandbox.cpp +++ b/Telegram/SourceFiles/core/sandbox.cpp @@ -373,11 +373,8 @@ void Sandbox::readClients() { toSend.append(_escapeFrom7bit(cmds.mid(from + 5, to - from - 5))); } } else if (cmd.startsWith(qsl("OPEN:"))) { - auto activateRequired = true; - if (cStartUrl().isEmpty()) { - startUrl = _escapeFrom7bit(cmds.mid(from + 5, to - from - 5)).mid(0, 8192); - activateRequired = StartUrlRequiresActivate(startUrl); - } + startUrl = _escapeFrom7bit(cmds.mid(from + 5, to - from - 5)).mid(0, 8192); + auto activateRequired = StartUrlRequiresActivate(startUrl); if (activateRequired) { execExternal("show"); }