mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3367 Primitives | Object icons (#2180)
This commit is contained in:
parent
ccbdc3c146
commit
b003a9e915
88 changed files with 632 additions and 1877 deletions
|
@ -28,6 +28,7 @@ import com.anytypeio.anytype.domain.multiplayer.ActiveSpaceMemberSubscriptionCon
|
|||
import com.anytypeio.anytype.domain.multiplayer.ActiveSpaceMemberSubscriptionContainer.Store
|
||||
import com.anytypeio.anytype.domain.multiplayer.SpaceViewSubscriptionContainer
|
||||
import com.anytypeio.anytype.domain.objects.StoreOfObjectTypes
|
||||
import com.anytypeio.anytype.domain.objects.getTypeOfObject
|
||||
import com.anytypeio.anytype.feature_chats.BuildConfig
|
||||
import com.anytypeio.anytype.presentation.common.BaseViewModel
|
||||
import com.anytypeio.anytype.presentation.confgs.ChatConfig
|
||||
|
@ -241,7 +242,10 @@ class ChatViewModel @Inject constructor(
|
|||
ChatView.Message.Attachment.Link(
|
||||
target = attachment.target,
|
||||
wrapper = wrapper,
|
||||
icon = wrapper?.objectIcon(urlBuilder) ?: ObjectIcon.None,
|
||||
icon = wrapper?.objectIcon(
|
||||
builder = urlBuilder,
|
||||
objType = storeOfObjectTypes.getTypeOfObject(wrapper)
|
||||
) ?: ObjectIcon.None,
|
||||
typeName = if (type != null)
|
||||
storeOfObjectTypes.get(type)?.name.orEmpty()
|
||||
else
|
||||
|
@ -603,7 +607,10 @@ class ChatViewModel @Inject constructor(
|
|||
ChatView.Message.ChatBoxAttachment.Existing.Link(
|
||||
target = wrapper.id,
|
||||
name = wrapper.name.orEmpty(),
|
||||
icon = wrapper.objectIcon(urlBuilder),
|
||||
icon = wrapper.objectIcon(
|
||||
builder = urlBuilder,
|
||||
objType = storeOfObjectTypes.getTypeOfObject(wrapper)
|
||||
),
|
||||
typeName = if (type != null)
|
||||
storeOfObjectTypes.get(type)?.name.orEmpty()
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue