mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-01-23 20:31:13 +01:00
trim the user email before displaying, just to be sure
This commit is contained in:
parent
f6347db55d
commit
b3bd0f182b
@ -87,7 +87,7 @@ data class Contact(val id: Int, var prefix: String, var firstName: String, var m
|
||||
val fullName = "$prefix $firstPart $lastPart$suffixComma".trim()
|
||||
return if (fullName.isEmpty()) {
|
||||
if (organization.isEmpty()) {
|
||||
emails.firstOrNull()?.value ?: ""
|
||||
emails.firstOrNull()?.value?.trim() ?: ""
|
||||
} else {
|
||||
var fullOrganization = if (organization.jobPosition.isEmpty()) "" else "${organization.jobPosition}, "
|
||||
fullOrganization += organization.company
|
||||
|
Loading…
Reference in New Issue
Block a user