mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-15 07:28:30 +00:00
Poke upload progress when viewing settings.
This commit is contained in:
@@ -119,6 +119,10 @@ object ArchiveUploadProgress {
|
||||
}
|
||||
}
|
||||
|
||||
fun triggerUpdate() {
|
||||
_progress.tryEmit(Unit)
|
||||
}
|
||||
|
||||
fun cancel() {
|
||||
updateState {
|
||||
ArchiveUploadProgressState(
|
||||
|
||||
@@ -89,6 +89,8 @@ class RemoteBackupsSettingsViewModel : ViewModel() {
|
||||
val restoreState: StateFlow<BackupRestoreState> = _restoreState
|
||||
|
||||
init {
|
||||
ArchiveUploadProgress.triggerUpdate()
|
||||
|
||||
viewModelScope.launch(Dispatchers.IO) {
|
||||
val isBillingApiAvailable = AppDependencies.billingApi.getApiAvailability().isSuccess
|
||||
if (isBillingApiAvailable) {
|
||||
|
||||
Reference in New Issue
Block a user