Allow ton:// links in webapps.

This commit is contained in:
John Preston
2025-06-03 10:27:39 +04:00
parent dd8fdfc3d4
commit 7f7b764f7b
2 changed files with 3 additions and 2 deletions

View File

@@ -1459,7 +1459,8 @@ bool WebViewInstance::botHandleLocalUri(QString uri, bool keepOpen) {
if (Core::InternalPassportLink(local)) {
return true;
} else if (!local.startsWith(u"tg://"_q, Qt::CaseInsensitive)
&& !local.startsWith(u"tonsite://"_q, Qt::CaseInsensitive)) {
&& !local.startsWith(u"tonsite://"_q, Qt::CaseInsensitive)
&& !local.startsWith(u"ton://"_q, Qt::CaseInsensitive)) {
return false;
}
const auto bot = _bot;