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",