Remove phantom restore media notification.

This commit is contained in:
Michelle Tang
2025-08-27 15:50:23 -04:00
parent b8c25a4d78
commit 42905b5bb8

View File

@@ -259,8 +259,9 @@ class MainActivity : PassphraseRequiredActivity(), VoiceNoteMediaControllerOwner
launch {
mainNavigationViewModel.backupStatus.collect { remainingRestoreSize ->
if (SignalStore.backup.restoreState == RestoreState.RESTORING_MEDIA && remainingRestoreSize != 0L) {
Log.i(TAG, "Still restoring media, launching a service. Remaining restoration size: $remainingRestoreSize")
val totalRestorableSize = SignalStore.backup.totalRestorableAttachmentSize
if (SignalStore.backup.restoreState == RestoreState.RESTORING_MEDIA && remainingRestoreSize != 0L && totalRestorableSize != 0L) {
Log.i(TAG, "Still restoring media, launching a service. Remaining restoration size: $remainingRestoreSize out of $totalRestorableSize ")
BackupMediaRestoreService.resetTimeout()
BackupMediaRestoreService.start(this@MainActivity, resources.getString(R.string.BackupStatus__restoring_media))
}