MessageItemState
constructor(message: Message = Message(), parentMessageId: String? = null, isMine: Boolean = false, isInThread: Boolean = false, showMessageFooter: Boolean = false, currentUser: User? = null, groupPosition: List<MessagePosition> = listOf(MessagePosition.NONE), isMessageRead: Boolean = false, deletedMessageVisibility: DeletedMessageVisibility = DeletedMessageVisibility.ALWAYS_HIDDEN, focusState: MessageFocusState? = null, messageReadBy: List<ChannelUserRead> = emptyList())
Parameters
message
The Message to show in the list.
parentMessageId
The id of the parent Message if the message is inside a thread.
isMine
Whether the message is sent by the current user or not.
isInThread
Whether the message is inside a thread or not.
showMessageFooter
Whether we need to show the message footer or not.
currentUser
The currently logged in user.
groupPosition
The MessagePosition of the item inside a group.
isMessageRead
Whether the message has been read or not.
deletedMessageVisibility
The DeletedMessageVisibility which determines the visibility of deleted messages in the UI.
focusState
The current MessageFocusState of the message, used to focus the message in the ui.
messageReadBy
The list of ChannelUserRead for the message.