Removes one of the Application dependencies in viewmodel

This commit is contained in:
Vitor Pamplona
2025-09-06 10:28:14 -04:00
parent 66eef96ccb
commit 18b2fdb7e4
2 changed files with 3 additions and 3 deletions

View File

@@ -531,7 +531,9 @@ fun ListContent(
@Composable
private fun RelayStatus(accountViewModel: AccountViewModel) {
val connectedRelaysText by accountViewModel.relayStatusFlow().collectAsStateWithLifecycle()
val connectedRelaysText by accountViewModel.account.client
.relayStatusFlow()
.collectAsStateWithLifecycle()
RenderRelayStatus(connectedRelaysText)
}

View File

@@ -1600,8 +1600,6 @@ class AccountViewModel(
fun findUsersStartingWithSync(prefix: String) = LocalCache.findUsersStartingWith(prefix, account)
fun relayStatusFlow() = app.client.relayStatusFlow()
fun convertAccounts(loggedInAccounts: List<AccountInfo>?): Set<HexKey> =
loggedInAccounts
?.mapNotNull {