ChannelItemState

data class ChannelItemState(val channel: Channel, val isMuted: Boolean = false, val typingUsers: List<User> = emptyList(), val draftMessage: DraftMessage? = null, val isSelected: Boolean = false) : ItemState

Represents each channel item we show in the list of channels.

Parameters

channel

The channel to show.

isMuted

If the channel is muted for the current user.

typingUsers

The list of users currently typing in the channel.

draftMessage

The draft message for the current user in the channel.

isSelected

Whether this channel is currently selected (e.g. via long-press context menu).

Constructors

Link copied to clipboard
constructor(channel: Channel, isMuted: Boolean = false, typingUsers: List<User> = emptyList(), draftMessage: DraftMessage? = null, isSelected: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val isMuted: Boolean = false
Link copied to clipboard
val isSelected: Boolean = false
Link copied to clipboard
open override val key: String
Link copied to clipboard