@Composable internal fun DefaultSelectedChannelMenuHeaderContent(selectedChannel: Channel,currentUser: User?,) {val channelMembers = selectedChannel.membersval membersToDisplay = if (selectedChannel.isOneToOne(currentUser)) {channelMembers.filter { it.user.id != currentUser?.id }} else {channelMembers } Text(modifier = Modifier.fillMaxWidth().padding(start = 16.dp, end = 16.dp, top = 16.dp),textAlign = TextAlign.Center,text = ChatTheme.channelNameFormatter.formatChannelName(selectedChannel, currentUser),style = ChatTheme.typography.title3Bold,color = ChatTheme.colors.textHighEmphasis,maxLines = 1,overflow = TextOverflow.Ellipsis)Text(modifier = Modifier.fillMaxWidth(),textAlign = TextAlign.Center,text = selectedChannel.getMembersStatusText(LocalContext.current, currentUser),style = ChatTheme.typography.footnoteBold,color = ChatTheme.colors.textLowEmphasis,) ChannelMembers(membersToDisplay) }
Represents the default content shown at the top of [SelectedChannelMenu] dialog.