Fix missing family name only nickname in export.

This commit is contained in:
Cody Henthorne
2026-09-09 16:44:26 -04:00
parent 84e98eeef4
commit c30d017d10
@@ -114,12 +114,12 @@ private fun Cursor.readNickname(): Contact.Name? {
val given = this.requireString(RecipientTable.NICKNAME_GIVEN_NAME)
val family = this.requireString(RecipientTable.NICKNAME_FAMILY_NAME)
if (given.isNullOrEmpty()) {
if (given.isNullOrEmpty() && family.isNullOrEmpty()) {
return null
}
return Contact.Name(
given = given,
given = given ?: "",
family = family ?: ""
)
}