mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: connections ui and unmessageable logic (#2016)
This commit is contained in:
parent
b7f5ba78b7
commit
3216559035
4 changed files with 39 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue