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:
parent
412fa0cb84
commit
472077d5ff
7 changed files with 16 additions and 10 deletions
|
@ -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
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue