ChannelAvatar
fun ChannelAvatar(channel: Channel, currentUser: User?, modifier: Modifier = Modifier, showIndicator: Boolean = false, showBorder: Boolean = false)
The default avatar for a channel.
This component displays the channel image, the user avatar for direct messages, or a placeholder.
Parameters
channel
The channel whose avatar will be displayed.
currentUser
The user currently logged in.
modifier
The modifier to be applied to this layout.
showIndicator
Whether to overlay a status indicator to show whether the user is online for 1:1 channels.
showBorder
Whether to draw a border around the avatar to provide contrast against the background.