Various Fixes

This commit is contained in:
Ilya Laktyushin
2022-01-31 03:43:19 +03:00
parent 4b360aae52
commit 7da4e1001f
4 changed files with 28 additions and 12 deletions

View File

@@ -193,7 +193,7 @@ public func generateTextEntities(_ text: String, enabledTypes: EnabledEntityType
guard let host = url.host?.lowercased() else {
return
}
if host == "telegram.org" || host == "t.me" {
if ["telegram.org", "www.telegram.org", "t.me", "www.t.me"].contains(host) {
} else {
return
}