mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-07-02 17:35:36 -04:00
fix(messages): Refresh channel placeholders after updates (#6054)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user