MessageItem

data class MessageItem(val message: Message, val positions: List<MessagePosition> = listOf(), val isMine: Boolean = false, val messageReadBy: List<ChannelUserRead> = listOf(), val isThreadMode: Boolean = false, val isMessageRead: Boolean = true, val showMessageFooter: Boolean = false) : MessageListItem

Represent a message item in a MessageListView.

Constructors

Link copied to clipboard
constructor(message: Message, positions: List<MessagePosition> = listOf(), isMine: Boolean = false, messageReadBy: List<ChannelUserRead> = listOf(), isThreadMode: Boolean = false, isMessageRead: Boolean = true, showMessageFooter: Boolean = false)

Properties

Link copied to clipboard

True if the message has been read or not.

Link copied to clipboard
val isMine: Boolean = false

True if the message is sent by the current user, otherwise false.

Link copied to clipboard

True if the message is sent by another user, otherwise false.

Link copied to clipboard
val isThreadMode: Boolean = false

True if the message is in a thread mode, otherwise false.

Link copied to clipboard

The message that should be displayed in the message item.

Link copied to clipboard

The list of users that already read the message.

Link copied to clipboard

The list of positions that should be displayed in the message item.

Link copied to clipboard

True if the message footer should be displayed, otherwise false.

Functions

Link copied to clipboard
open override fun stringify(): String

Inherited functions