0
0
mirror of https://github.com/etesync/android.git synced 2024-09-20 21:13:05 +02:00

Fix applying of groups from journal.

This commit is contained in:
Tom Hacohen 2019-01-06 20:00:37 +00:00
parent c4daed9391
commit b2f7cc811f

View File

@ -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 {