ChannelItemState

data class ChannelItemState(val channel: Channel, val isMuted: Boolean = false, val typingUsers: List<User> = emptyList(), val draftMessage: DraftMessage? = null, val isSelected: Boolean = false, val isUserMuted: 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).

isUserMuted

If this is a 1:1 channel and the other member is muted by the current user.

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val key: String
Link copied to clipboard