ignore the photos only at comparing private contacts

This commit is contained in:
tibbi 2021-11-19 20:02:49 +01:00
parent 1ec064ef87
commit 8e8a5d331e

View File

@ -130,6 +130,7 @@ data class Contact(
} }
fun getStringToCompare(): String { fun getStringToCompare(): String {
val photoToUse = if (isPrivate()) null else photo
return copy( return copy(
id = 0, id = 0,
prefix = "", prefix = "",
@ -147,7 +148,7 @@ data class Contact(
starred = 0, starred = 0,
contactId = 0, contactId = 0,
thumbnailUri = "", thumbnailUri = "",
photo = null, photo = photoToUse,
notes = "", notes = "",
groups = ArrayList(), groups = ArrayList(),
websites = ArrayList(), websites = ArrayList(),