From 9ed656c53271ffdb50accb2fc55578395de37d7c Mon Sep 17 00:00:00 2001 From: Jeremiah K <17190268+jeremiah-k@users.noreply.github.com> Date: Wed, 1 Jul 2026 16:33:16 -0500 Subject: [PATCH] fix(messages): Refresh channel placeholders after updates (#6054) --- .../org/meshtastic/feature/messaging/ui/contact/Contacts.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/feature/messaging/src/commonMain/kotlin/org/meshtastic/feature/messaging/ui/contact/Contacts.kt b/feature/messaging/src/commonMain/kotlin/org/meshtastic/feature/messaging/ui/contact/Contacts.kt index 3312025db..8120e9784 100644 --- a/feature/messaging/src/commonMain/kotlin/org/meshtastic/feature/messaging/ui/contact/Contacts.kt +++ b/feature/messaging/src/commonMain/kotlin/org/meshtastic/feature/messaging/ui/contact/Contacts.kt @@ -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",