mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Various fixes
This commit is contained in:
@@ -798,8 +798,12 @@ final class LocationPickerControllerNode: ViewControllerTracingNode, CLLocationM
|
||||
var cityName: String?
|
||||
var streetName: String?
|
||||
let countryCode = placemark?.countryCode
|
||||
if let city = placemark?.city, let countryCode = placemark?.countryCode {
|
||||
cityName = "\(city), \(displayCountryName(countryCode, locale: locale))"
|
||||
if let city = placemark?.city {
|
||||
if let countryCode = placemark?.countryCode {
|
||||
cityName = "\(city), \(displayCountryName(countryCode, locale: locale))"
|
||||
} else {
|
||||
cityName = city
|
||||
}
|
||||
} else {
|
||||
cityName = ""
|
||||
}
|
||||
@@ -843,8 +847,12 @@ final class LocationPickerControllerNode: ViewControllerTracingNode, CLLocationM
|
||||
var cityName: String?
|
||||
var streetName: String?
|
||||
let countryCode = placemark?.countryCode
|
||||
if let city = placemark?.city, let countryCode = placemark?.countryCode {
|
||||
cityName = "\(city), \(displayCountryName(countryCode, locale: locale))"
|
||||
if let city = placemark?.city {
|
||||
if let countryCode = placemark?.countryCode {
|
||||
cityName = "\(city), \(displayCountryName(countryCode, locale: locale))"
|
||||
} else {
|
||||
cityName = city
|
||||
}
|
||||
} else {
|
||||
cityName = ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user