MessageListItemWrapper
data class MessageListItemWrapper(val items: List<MessageListItem> = listOf(), val hasNewMessages: Boolean = false, val isTyping: Boolean = false, val isThread: Boolean = false, val areNewestMessagesLoaded: Boolean = true, newMessageState: NewMessageState? = null)
MessageListItemWrapper wraps a list of MessageListItem with a few extra fields.
Parameters
items
The list of MessageListItems to be shown in the list.
hasNewMessages
Whether the user has new messages or not.
isTyping
Whether the user is typing or not.
isThread
Whether the user is in a thread or not.
areNewestMessagesLoaded
Whether the newest messages are loaded or not.
Constructors
Link copied to clipboard
constructor(items: List<MessageListItem> = listOf(), hasNewMessages: Boolean = false, isTyping: Boolean = false, isThread: Boolean = false, areNewestMessagesLoaded: Boolean = true, newMessageState: NewMessageState? = null)