refactor: finish transition from NodeInfo to NodeEntity

This commit is contained in:
andrekir 2024-10-12 07:05:25 -03:00
parent ed2703c77a
commit b503c10789
5 changed files with 36 additions and 21 deletions

View file

@ -186,8 +186,8 @@ class UIViewModel @Inject constructor(
private val _quickChatActions = MutableStateFlow<List<QuickChatAction>>(emptyList())
val quickChatActions: StateFlow<List<QuickChatAction>> = _quickChatActions
private val _focusedNode = MutableStateFlow<NodeInfo?>(null)
val focusedNode: StateFlow<NodeInfo?> = _focusedNode
private val _focusedNode = MutableStateFlow<NodeEntity?>(null)
val focusedNode: StateFlow<NodeEntity?> = _focusedNode
private val nodeFilterText = MutableStateFlow("")
private val nodeSortOption = MutableStateFlow(NodeSortOption.LAST_HEARD)
@ -747,7 +747,7 @@ class UIViewModel @Inject constructor(
_currentTab.value = tab
}
fun focusUserNode(node: NodeInfo?) {
fun focusUserNode(node: NodeEntity?) {
_currentTab.value = 1
_focusedNode.value = node
}