Прочтение
This commit is contained in:
@@ -23,6 +23,12 @@ class AuthViewModel @Inject constructor(
|
||||
private val repository: AuthRepository
|
||||
) : ViewModel() {
|
||||
|
||||
init {
|
||||
if (repository.isAuthenticated()) {
|
||||
updatePushToken()
|
||||
}
|
||||
}
|
||||
|
||||
private val _state = MutableStateFlow(AuthState(isAuthenticated = repository.isAuthenticated()))
|
||||
val state: StateFlow<AuthState> = _state.asStateFlow()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user