Moves Relay viewModels to Default thread

This commit is contained in:
Vitor Pamplona 2024-08-05 15:08:08 -04:00
parent 3c034ca8af
commit a0289a0cb4
2 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,7 @@
*/
package com.vitorpamplona.amethyst.ui.actions.relays
import androidx.compose.runtime.Stable
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.vitorpamplona.amethyst.model.Account
@ -38,6 +39,7 @@ import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.update
import kotlinx.coroutines.launch
@Stable
class Kind3RelayListViewModel : ViewModel() {
private lateinit var account: Account

View File

@ -20,6 +20,7 @@
*/
package com.vitorpamplona.amethyst.ui.actions.relays
import androidx.compose.runtime.Stable
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.vitorpamplona.amethyst.model.Account
@ -33,6 +34,7 @@ import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.update
import kotlinx.coroutines.launch
@Stable
class Nip65RelayListViewModel : ViewModel() {
private lateinit var account: Account