Don't display virtual numbers tip for US accounts

This commit is contained in:
Ilya Laktyushin
2022-11-28 00:05:09 +04:00
parent 61b298b9e2
commit ec2b3f42e8
2 changed files with 16 additions and 5 deletions

View File

@@ -39,7 +39,7 @@ private func removePlus(_ text: String?) -> String {
return result
}
private func lookupCountryIdByNumber(_ number: String, configuration: CountriesConfiguration) -> (Country, Country.CountryCode)? {
public func lookupCountryIdByNumber(_ number: String, configuration: CountriesConfiguration) -> (Country, Country.CountryCode)? {
let number = removePlus(number)
var results: [(Country, Country.CountryCode)]? = nil
for i in 0 ..< number.count {