mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-03 21:54:05 +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) {
|
||||
const auto result = qthelp::validate_url(url);
|
||||
return result.startsWith("tg://", Qt::CaseInsensitive)
|
||||
? QString()
|
||||
: result;
|
||||
return (result.startsWith("http://", Qt::CaseInsensitive)
|
||||
|| result.startsWith("https://", Qt::CaseInsensitive))
|
||||
? result
|
||||
: QString();
|
||||
}
|
||||
|
||||
auto ParseConfig(const QByteArray &json) {
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit ca4503b3075fcaed5719b6ff1f40e40d14d08d95
|
||||
Subproject commit fa02c719d19bc647bcde4ba172b72d05bacb6a79
|
Loading…
Add table
Reference in a new issue