diff --git a/Telegram/SourceFiles/core/click_handler_types.cpp b/Telegram/SourceFiles/core/click_handler_types.cpp index 3726fa3581..c7f95f9b25 100644 --- a/Telegram/SourceFiles/core/click_handler_types.cpp +++ b/Telegram/SourceFiles/core/click_handler_types.cpp @@ -49,7 +49,7 @@ QString tryConvertUrlToLocal(QString url) { } else if (auto confirmPhoneMatch = regex_match(qsl("^confirmphone/?\\?(.+)"), query, matchOptions)) { return qsl("tg://confirmphone?") + confirmPhoneMatch->captured(1); } else if (auto usernameMatch = regex_match(qsl("^([a-zA-Z0-9\\.\\_]+)(/?\\?|/?$|/(\\d+)/?(?:\\?|$))"), query, matchOptions)) { - QString params = url.mid(usernameMatch->captured(0).size()), postParam; + QString params = query.mid(usernameMatch->captured(0).size()).toString(), postParam; if (auto postMatch = regex_match(qsl("^/\\d+/?(?:\\?|$)"), usernameMatch->captured(2))) { postParam = qsl("&post=") + usernameMatch->captured(3); } diff --git a/Telegram/build/build.bat b/Telegram/build/build.bat index 97f4076526..775427765e 100644 --- a/Telegram/build/build.bat +++ b/Telegram/build/build.bat @@ -46,6 +46,11 @@ set "SignPath=%HomePath%\..\..\TelegramPrivate\Sign.bat" set "BinaryName=Telegram" set "DropboxSymbolsPath=X:\Telegram\symbols" +if not exist %DropboxSymbolsPath% ( + echo Dropbox path not found! + exit /b 1 +) + if %BetaVersion% neq 0 ( if exist %DeployPath%\ ( echo Deploy folder for version %AppVersionStr% already exists!