Filter Etebase collection types

pull/1244/head
Alex Baker 5 years ago
parent c7acafbc62
commit 03d6aa94a0

@ -38,9 +38,9 @@ class EtebaseClient(
) )
} }
stoken = response.stoken stoken = response.stoken
response.data.forEach { response.data
cache.collectionSet(collectionManager, it) .filter { it.collectionType == TYPE_TASKS }
} .forEach { cache.collectionSet(collectionManager, it) }
response.removedMemberships.forEach { response.removedMemberships.forEach {
cache.collectionUnset(collectionManager, it) cache.collectionUnset(collectionManager, it)
} }

Loading…
Cancel
Save