mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-24 03:35:58 +00:00
Ensure api availability is properly loaded in checkout flow.
This commit is contained in:
@@ -76,6 +76,14 @@ class MessageBackupsFlowViewModel(
|
||||
val deletionState: Flow<DeletionState> = SignalStore.backup.deletionStateFlow
|
||||
|
||||
init {
|
||||
viewModelScope.launch(SignalDispatchers.IO) {
|
||||
internalStateFlow.update {
|
||||
it.copy(
|
||||
googlePlayBillingAvailability = AppDependencies.billingApi.getApiAvailability()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
viewModelScope.launch {
|
||||
val result = withContext(SignalDispatchers.IO) {
|
||||
BackupRepository.triggerBackupIdReservation()
|
||||
|
||||
Reference in New Issue
Block a user