fix(messages): Refresh channel placeholders after updates (#6054)

This commit is contained in:
Jeremiah K
2026-07-01 16:33:16 -05:00
committed by GitHub
parent 19168c5ca1
commit 9ed656c532

View File

@@ -146,8 +146,8 @@ fun ContactsScreen(
// Create channel placeholders (always show broadcast contacts, even when empty)
val channels by viewModel.channels.collectAsStateWithLifecycle()
val channelPlaceholders =
remember(channels.settings.size) {
(0 until channels.settings.size).map { ch ->
remember(channels) {
channels.settings.mapIndexed { ch, _ ->
Contact(
contactKey = "$ch^all",
shortName = "$ch",