mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +02:00
Fix local url handling.
Regression was introduced in 849deb57e2
.
Fixes #6622.
This commit is contained in:
parent
bf345da87b
commit
65b5a29288
1 changed files with 4 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue