diff options
Diffstat (limited to 'android/app/src')
| -rw-r--r-- | android/app/src/main/kotlin/net/mullvad/mullvadvpn/repository/AccountRepository.kt | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/repository/AccountRepository.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/repository/AccountRepository.kt index 0bf8b1b8ec..782029dc78 100644 --- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/repository/AccountRepository.kt +++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/repository/AccountRepository.kt @@ -45,22 +45,14 @@ class AccountRepository( messageHandler .events<Event.AccountExpiryEvent>() .map { it.expiry } - .stateIn( - CoroutineScope(dispatcher), - SharingStarted.WhileSubscribed(), - AccountExpiry.Missing - ) + .stateIn(CoroutineScope(dispatcher), SharingStarted.Eagerly, AccountExpiry.Missing) val accountHistory: StateFlow<AccountHistory> = messageHandler .events<Event.AccountHistoryEvent>() .map { it.history } .onStart { fetchAccountHistory() } - .stateIn( - CoroutineScope(dispatcher), - SharingStarted.WhileSubscribed(), - AccountHistory.Missing - ) + .stateIn(CoroutineScope(dispatcher), SharingStarted.Eagerly, AccountHistory.Missing) private val loginEvents: SharedFlow<LoginResult> = messageHandler |
