mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-10-05 15:23:29 +01:00
Improve display of backup details when upload is in progress.
This commit is contained in:
1 parent
eb620374e2
commit
88f17e29aa
1 file changed
-4
-4
@@ -150,9 +150,6 @@ class RemoteBackupsSettingsViewModel : ViewModel() {
|
||||
ArchiveUploadProgress.progress
|
||||
.collect { current ->
|
||||
if (previous != null && current.state == ArchiveUploadProgressState.State.None) {
|
||||
_state.update {
|
||||
it.copy(lastBackupTimestamp = SignalStore.backup.lastBackupTime)
|
||||
}
|
||||
refreshState(null)
|
||||
}
|
||||
previous = current.state
|
||||
@@ -241,7 +238,6 @@ class RemoteBackupsSettingsViewModel : ViewModel() {
|
||||
_state.update {
|
||||
it.copy(
|
||||
backupsEnabled = SignalStore.backup.areBackupsEnabled,
|
||||
backupState = RemoteBackupsSettingsState.BackupState.Loading,
|
||||
lastBackupTimestamp = SignalStore.backup.lastBackupTime,
|
||||
backupMediaSize = SignalDatabase.attachments.getEstimatedArchiveMediaSize(),
|
||||
backupsFrequency = SignalStore.backup.backupFrequency,
|
||||
|
||||
Reference in new issue
Block a user