1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-3601 Primitives | Tech | Storing archived types (#2357)

This commit is contained in:
Konstantin Ivanov 2025-04-24 21:25:15 +02:00 committed by Evgenii Kozlov
parent adc36f1a6b
commit fd1c45f780
3 changed files with 4 additions and 9 deletions

View file

@ -65,7 +65,7 @@ class SpaceTypesViewModel(
storeOfObjectTypes.getAll().mapNotNull { objectType ->
val resolvedLayout =
objectType.recommendedLayout ?: return@mapNotNull null
if (notAllowedTypesLayouts.contains(resolvedLayout)) {
if (notAllowedTypesLayouts.contains(resolvedLayout) || objectType.isArchived == true) {
return@mapNotNull null
} else {
objectType