diff --git a/app/src/main/java/chat/revolt/composables/screens/chat/drawer/ChannelSideDrawer.kt b/app/src/main/java/chat/revolt/composables/screens/chat/drawer/ChannelSideDrawer.kt index 053fb925..b6f1e3bc 100644 --- a/app/src/main/java/chat/revolt/composables/screens/chat/drawer/ChannelSideDrawer.kt +++ b/app/src/main/java/chat/revolt/composables/screens/chat/drawer/ChannelSideDrawer.kt @@ -674,46 +674,42 @@ private fun ColumnScope.DirectMessagesChannelListRenderer( .fillMaxSize() .weight(1f) ) { - item("top-divider") { - HorizontalDivider( - Modifier - .fillMaxWidth() - .padding(horizontal = 8.dp, vertical = 4.dp) - ) - } - item(key = "saved_messages") { val notesChannel = RevoltAPI.channelCache.values.firstOrNull { it.channelType == ChannelType.SavedMessages } if (notesChannel != null) { - ChannelItem( - channel = Channel( - id = notesChannel.id, - name = stringResource(R.string.channel_notes), - channelType = ChannelType.SavedMessages - ), - isCurrent = currentDestination is ChatRouterDestination.Channel && - currentDestination.channelId == notesChannel.id, - onDestinationChanged = { - onDestinationChanged(it) - }, - hasUnread = false, - onOpenChannelContextSheet = {}, + HorizontalDivider( + Modifier + .fillMaxWidth() + .padding(horizontal = 8.dp, vertical = 4.dp) ) + Column(Modifier.fillMaxWidth()) { + ChannelItem( + channel = Channel( + id = notesChannel.id, + name = stringResource(R.string.channel_notes), + channelType = ChannelType.SavedMessages + ), + isCurrent = currentDestination is ChatRouterDestination.Channel && + currentDestination.channelId == notesChannel.id, + onDestinationChanged = { + onDestinationChanged(it) + }, + hasUnread = false, + onOpenChannelContextSheet = {}, + ) + HorizontalDivider( + Modifier + .fillMaxWidth() + .padding(horizontal = 8.dp, vertical = 4.dp) + ) + Spacer(Modifier.height(4.dp)) + } } } - item("bottom-divider") { - HorizontalDivider( - Modifier - .fillMaxWidth() - .padding(horizontal = 8.dp, vertical = 4.dp) - ) - Spacer(Modifier.height(4.dp)) - } - if (dmAbleChannels.isEmpty()) { item(key = "empty-list-state") { Column(