ChatListNavLinkView.desktop: restore chat list dividers outside SectionView

Commit 633e0f414 made SectionDivider() a no-op outside SectionView card, which removed the desktop chat list dividers (the list is not wrapped in a SectionView). Mirror the Android conditional: SectionDivider in-card, padded Divider otherwise.
This commit is contained in:
another-simple-pixel
2026-05-17 08:00:01 -07:00
parent 963140e9a0
commit 1ff5b3d36b
@@ -1,5 +1,6 @@
package chat.simplex.common.views.chatlist
import LocalInSectionCard
import SectionDivider
import androidx.compose.foundation.*
import androidx.compose.foundation.interaction.InteractionSource
@@ -61,7 +62,9 @@ actual fun ChatListNavLinkLayout(
}
if (selectedChat.value || nextChatSelected.value) {
Divider()
} else {
} else if (LocalInSectionCard.current) {
SectionDivider()
} else {
Divider(Modifier.padding(horizontal = 8.dp))
}
}