Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// com/example/bubblechat/BubbleMessageViewHolder.kt:29
override fun bind(
_context: Context,
channelState: ChannelState,
messageListItem: MessageListItem,
_position: Int
) {
this.channelState = channelState
this.messageListItem = messageListItem
when (this.messageListItem.type) {
MESSAGEITEM_MESSAGE -> {
configMessage()
}
MESSAGEITEM_DATE_SEPARATOR -> {
configDate()
}
else -> {
header.visibility = View.GONE
text.visibility = View.GONE
username.visibility = View.GONE
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.