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;

@ -1 +1 @@
Subproject commit b9f9e981c81a78120a023822d2aa908d38b6795f
Subproject commit 04c45d069fc0088740b9637bc5da414ee82be198