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

DROID-3215 Date as an object | Fix | Space member is removed by swiping (#1968)

This commit is contained in:
Konstantin Ivanov 2025-01-04 15:20:34 +01:00 committed by GitHub
parent 5edb38a440
commit 9be32dff13
Signed by: github
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 12 deletions

View file

@ -7,6 +7,7 @@ import com.anytypeio.anytype.core_models.ObjectWrapper
import com.anytypeio.anytype.core_models.RelationListWithValueItem
import com.anytypeio.anytype.core_models.Relations
import com.anytypeio.anytype.core_models.primitives.SpaceId
import com.anytypeio.anytype.core_models.restrictions.ObjectRestriction
import com.anytypeio.anytype.domain.misc.UrlBuilder
import com.anytypeio.anytype.domain.objects.StoreOfRelations
import com.anytypeio.anytype.domain.primitives.FieldParser
@ -78,6 +79,6 @@ fun ObjectWrapper.Basic.toUiObjectsListItem(
}?.name,
layout = layout,
icon = obj.objectIcon(builder = urlBuilder),
isPossibleToDelete = isOwnerOrEditor
isPossibleToDelete = isOwnerOrEditor && !restrictions.contains(ObjectRestriction.DELETE)
)
}