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

DROID-2905 Primitives | Fixes (#2328)

This commit is contained in:
Konstantin Ivanov 2025-04-16 16:51:56 +02:00 committed by GitHub
parent 412fa0cb84
commit 472077d5ff
Signed by: github
GPG key ID: B5690EEEBB952194
7 changed files with 16 additions and 10 deletions

View file

@ -196,6 +196,7 @@ suspend fun ObjectWrapper.Basic.toAllContentItem(
val typeUrl = obj.getProperType()
val isProfile = typeUrl == MarketplaceObjectTypeIds.PROFILE
val layout = obj.layout ?: ObjectType.Layout.BASIC
val isType = obj.layout == ObjectType.Layout.OBJECT_TYPE
return UiContentItem.Item(
id = obj.id,
space = space,
@ -216,7 +217,7 @@ suspend fun ObjectWrapper.Basic.toAllContentItem(
),
lastModifiedDate = DateParser.parse(obj.getValue(Relations.LAST_MODIFIED_DATE)) ?: 0L,
createdDate = DateParser.parse(obj.getValue(Relations.CREATED_DATE)) ?: 0L,
isPossibleToDelete = isOwnerOrEditor
isPossibleToDelete = isOwnerOrEditor && !isType
)
}