Zoff
02/27/2024, 3:13 PMKirill Grouchnikov
02/27/2024, 3:52 PMrob42
02/27/2024, 9:47 PMmessages.forEachIndex { idx, msg ->
val prevMsg = messages[idx]
item {
ChatBubble(
name = if (prevMsg.sender == msg.sender) "" else msg.sender,
text = msg.text,
)
}
}
There's nothing special about LazyColumn here, the approach would be the same if this was a regular old column.Zoff
02/28/2024, 8:54 AM