mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-25 04:38:23 +00:00
Fix local url handling.
Regression was introduced in 849deb57e2
.
Fixes #6622.
This commit is contained in:
parent
bf345da87b
commit
65b5a29288
@ -47,7 +47,7 @@ void UiIntegration::textActionsUpdated() {
|
||||
window->updateGlobalMenu();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void UiIntegration::activationFromTopPanel() {
|
||||
Platform::IgnoreApplicationActivationRightNow();
|
||||
}
|
||||
@ -115,7 +115,7 @@ std::shared_ptr<ClickHandler> UiIntegration::createLinkHandler(
|
||||
bool UiIntegration::handleUrlClick(
|
||||
const QString &url,
|
||||
const QVariant &context) {
|
||||
auto local = Core::TryConvertUrlToLocal(url);
|
||||
const auto local = Core::TryConvertUrlToLocal(url);
|
||||
if (Core::InternalPassportLink(local)) {
|
||||
return true;
|
||||
}
|
||||
@ -123,8 +123,8 @@ bool UiIntegration::handleUrlClick(
|
||||
if (UrlClickHandler::IsEmail(url)) {
|
||||
File::OpenEmailLink(url);
|
||||
return true;
|
||||
} else if (url.startsWith(qstr("tg://"), Qt::CaseInsensitive)) {
|
||||
Core::App().openLocalUrl(url, context);
|
||||
} else if (local.startsWith(qstr("tg://"), Qt::CaseInsensitive)) {
|
||||
Core::App().openLocalUrl(local, context);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user