fix: connections ui and unmessageable logic (#2016)

This commit is contained in:
James Rich 2025-06-04 06:53:22 -05:00 committed by GitHub
parent b7f5ba78b7
commit 3216559035
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 39 additions and 13 deletions

View file

@ -552,7 +552,7 @@ class UIViewModel @Inject constructor(
val connectionState get() = radioConfigRepository.connectionState
fun isConnected() = connectionState.value != MeshService.ConnectionState.DISCONNECTED
val isConnected =
radioConfigRepository.connectionState.map { it == MeshService.ConnectionState.CONNECTED }
radioConfigRepository.connectionState.map { it != MeshService.ConnectionState.DISCONNECTED }
private val _requestChannelSet = MutableStateFlow<AppOnlyProtos.ChannelSet?>(null)
val requestChannelSet: StateFlow<AppOnlyProtos.ChannelSet?> get() = _requestChannelSet