Fix applying of groups from journal.

pull/61/head
Tom Hacohen 6 years ago
parent c4daed9391
commit b2f7cc811f

@ -270,7 +270,14 @@ class LocalAddressBook(
return reallyDirty
}
override fun findByUid(uid: String): LocalAddress? = findContactByUID(uid)
override fun findByUid(uid: String): LocalAddress? {
val found = findContactByUID(uid)
if (found != null) {
return found
} else {
return queryGroups("${AndroidGroup.COLUMN_UID}=?", arrayOf(uid)).firstOrNull()
}
}
override fun count(): Long {
try {

Loading…
Cancel
Save