Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
asliayk committed Sep 27, 2024
1 parent ad81f6c commit bb694dc
Showing 1 changed file with 20 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,23 +150,27 @@ internal fun ConversationList(
) { Icon(imageVector = Icons.Default.School, contentDescription = null) }
}

listWithHeader(
conversationCollections.groupChats,
SECTION_GROUPS_KEY,
KEY_SUFFIX_GROUPS,
R.string.conversation_overview_section_groups,
OnClickAction(onRequestCreatePersonalConversation),
viewModel::toggleGroupChatsExpanded
) { Icon(imageVector = Icons.Default.Forum, contentDescription = null) }
if (conversationCollections.groupChats.conversations.isNotEmpty()) {
listWithHeader(
conversationCollections.groupChats,
SECTION_GROUPS_KEY,
KEY_SUFFIX_GROUPS,
R.string.conversation_overview_section_groups,
OnClickAction(onRequestCreatePersonalConversation),
viewModel::toggleGroupChatsExpanded
) { Icon(imageVector = Icons.Default.Forum, contentDescription = null) }
}

listWithHeader(
conversationCollections.directChats,
SECTION_DIRECT_MESSAGES_KEY,
KEY_SUFFIX_PERSONAL,
R.string.conversation_overview_section_direct_messages,
OnClickAction(onRequestCreatePersonalConversation),
viewModel::togglePersonalConversationsExpanded
) { Icon(imageVector = Icons.Default.Message, contentDescription = null) }
if (conversationCollections.directChats.conversations.isNotEmpty()) {
listWithHeader(
conversationCollections.directChats,
SECTION_DIRECT_MESSAGES_KEY,
KEY_SUFFIX_PERSONAL,
R.string.conversation_overview_section_direct_messages,
OnClickAction(onRequestCreatePersonalConversation),
viewModel::togglePersonalConversationsExpanded
) { Icon(imageVector = Icons.Default.Message, contentDescription = null) }
}

if (conversationCollections.hidden.conversations.isNotEmpty()) {
listWithHeader(
Expand Down

0 comments on commit bb694dc

Please sign in to comment.