mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Improve country selection search
This commit is contained in:
@@ -236,6 +236,7 @@ public final class AuthorizationSequenceCountrySelectionController: ViewControll
|
||||
}
|
||||
|
||||
public static func lookupPatternByNumber(_ number: String, preferredCountries: [String: String]) -> String? {
|
||||
let number = removePlus(number)
|
||||
if let (_, code) = lookupCountryIdByNumber(number, preferredCountries: preferredCountries), !code.patterns.isEmpty {
|
||||
var prefixes: [String: String] = [:]
|
||||
for pattern in code.patterns {
|
||||
|
||||
Reference in New Issue
Block a user