mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Fix country code filtering by removing "+" prefix handling.
Closes #14137
This commit is contained in:
@@ -99,7 +99,7 @@ class FindByViewModel(
|
||||
query = filterBy,
|
||||
filteredCountries = state.value.supportedCountries.filter { country: Country ->
|
||||
country.name.contains(filterBy, ignoreCase = true) ||
|
||||
country.countryCode.toString().contains(filterBy) ||
|
||||
country.countryCode.toString().contains(filterBy.removePrefix("+")) ||
|
||||
(filterBy.equals("usa", ignoreCase = true) && country.name.equals("United States", ignoreCase = true))
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user