Version 0.10.1: fix for deep linking start/startgroup in bot links.

This commit is contained in:
John Preston 2016-08-05 20:31:19 +01:00
parent a25f55ba68
commit 67a3f33aa7
2 changed files with 6 additions and 1 deletions

View File

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

View File

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