getMessageBubbleShape
fun getMessageBubbleShape(cornerRadius: Dp, isSender: Boolean, hasSamePrev: Boolean = false, hasSameNext: Boolean = false): CornerBasedShape(source)
Returns a CornerBasedShape for a message bubble based on its position in a sequence.
Parameters
cornerRadius
The base corner radius for the bubble.
isSender
Whether the message was sent by the local user.
hasSamePrev
Whether the previous message in the list is from the same sender.
hasSameNext
Whether the next message in the list is from the same sender.