mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Allow tonsite:// custom links.
This commit is contained in:
parent
3549349ffb
commit
693eaf9262
2 changed files with 5 additions and 4 deletions
|
@ -233,9 +233,10 @@ QString SpecialScanCredentialsKey(FileType type) {
|
||||||
|
|
||||||
QString ValidateUrl(const QString &url) {
|
QString ValidateUrl(const QString &url) {
|
||||||
const auto result = qthelp::validate_url(url);
|
const auto result = qthelp::validate_url(url);
|
||||||
return result.startsWith("tg://", Qt::CaseInsensitive)
|
return (result.startsWith("http://", Qt::CaseInsensitive)
|
||||||
? QString()
|
|| result.startsWith("https://", Qt::CaseInsensitive))
|
||||||
: result;
|
? result
|
||||||
|
: QString();
|
||||||
}
|
}
|
||||||
|
|
||||||
auto ParseConfig(const QByteArray &json) {
|
auto ParseConfig(const QByteArray &json) {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit ca4503b3075fcaed5719b6ff1f40e40d14d08d95
|
Subproject commit fa02c719d19bc647bcde4ba172b72d05bacb6a79
|
Loading…
Add table
Reference in a new issue