diff --git a/owncloudApp/src/main/java/com/owncloud/android/presentation/files/filelist/MainFileListFragment.kt b/owncloudApp/src/main/java/com/owncloud/android/presentation/files/filelist/MainFileListFragment.kt index d565948ecd2..998ba69f32f 100644 --- a/owncloudApp/src/main/java/com/owncloud/android/presentation/files/filelist/MainFileListFragment.kt +++ b/owncloudApp/src/main/java/com/owncloud/android/presentation/files/filelist/MainFileListFragment.kt @@ -601,7 +601,11 @@ class MainFileListFragment : Fragment(), } /* TransfersViewModel observables */ - // Observe the transfers + observeTransfers() + + } + + private fun observeTransfers() { collectLatestLifecycleFlow(transfersViewModel.transfersWithSpaceStateFlow) { transfers -> val newlySucceededTransfers = transfers.map { it.first }.filter { it.status == TransferStatus.TRANSFER_SUCCEEDED && it.accountName == AccountUtils.getCurrentOwnCloudAccount(requireContext()).name }