mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3362 Widgets | Fix | Should not trigger container creation on irrelevant keys updates (#2467)
This commit is contained in:
parent
4be24285e6
commit
ad1492120e
5 changed files with 83 additions and 6 deletions
|
@ -1,6 +1,7 @@
|
|||
package com.anytypeio.anytype.core_models
|
||||
|
||||
import com.anytypeio.anytype.core_models.multiplayer.SpaceAccessType
|
||||
import com.anytypeio.anytype.core_models.multiplayer.SpaceUxType
|
||||
import com.anytypeio.anytype.core_models.restrictions.SpaceStatus
|
||||
import com.anytypeio.anytype.test_utils.MockDataFactory
|
||||
|
||||
|
@ -104,8 +105,8 @@ fun StubSpaceView(
|
|||
sharedSpaceLimit: Int? = null,
|
||||
spaceAccountStatus: SpaceStatus? = null,
|
||||
spaceLocalStatus: SpaceStatus? = null,
|
||||
chatId: Id? = null
|
||||
|
||||
chatId: Id? = null,
|
||||
spaceUxType: SpaceUxType = SpaceUxType.DATA,
|
||||
) = ObjectWrapper.SpaceView(
|
||||
map = mapOf(
|
||||
Relations.ID to id,
|
||||
|
@ -114,6 +115,7 @@ fun StubSpaceView(
|
|||
Relations.SPACE_ACCESS_TYPE to spaceAccessType.code.toDouble(),
|
||||
Relations.SHARED_SPACES_LIMIT to sharedSpaceLimit?.toDouble(),
|
||||
Relations.SPACE_ACCOUNT_STATUS to spaceAccountStatus?.code?.toDouble(),
|
||||
Relations.SPACE_LOCAL_STATUS to spaceLocalStatus?.code?.toDouble()
|
||||
Relations.SPACE_LOCAL_STATUS to spaceLocalStatus?.code?.toDouble(),
|
||||
Relations.SPACE_UX_TYPE to spaceUxType.code.toDouble()
|
||||
)
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue