Skip to content

Commit

Permalink
fix: Data in TransferInfo now correctly update when opening another T…
Browse files Browse the repository at this point in the history
…ransfer
  • Loading branch information
KevinBoulongne committed Jan 2, 2025
1 parent 969af5d commit b006db5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ fun TransferDetailsScreen(
transferDetailsViewModel.loadTransfer(transferUuid)
}

when (val state = uiState) {
when (uiState) {
is Delete -> navigateBack?.invoke()
is Success -> TransferDetailsScreen(
transferUrl = transferDetailsViewModel.getTransferUrl(transferUuid),
direction = direction,
navigateBack = navigateBack,
getTransfer = { state.transfer },
downloadFiles = { transferDetailsViewModel.startDownloadingAllFiles(state.transfer) },
getTransfer = { (uiState as Success).transfer },
downloadFiles = { transferDetailsViewModel.startDownloadingAllFiles((uiState as Success).transfer) },
getCheckedFiles = { transferDetailsViewModel.checkedFiles },
clearCheckedFiles = { transferDetailsViewModel.checkedFiles.clear() },
setFileCheckStatus = { fileUid, isChecked ->
Expand Down

0 comments on commit b006db5

Please sign in to comment.