mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 11:38:51 +01:00
Stricter check for phone number equality
This commit is contained in:
@@ -34,7 +34,7 @@ open class Recipient(
|
||||
* Return a string that can be displayed to represent the name of this contact
|
||||
*/
|
||||
fun getDisplayName(): String = contact?.name?.takeIf { it.isNotBlank() }
|
||||
?: PhoneNumberUtils.formatNumber(address, Locale.getDefault().country)
|
||||
?: PhoneNumberUtils.formatNumber(address, Locale.getDefault().country) // TODO: Use our own PhoneNumberUtils
|
||||
?: address
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user