Skip to content

Commit

Permalink
Use a send method to send picked files to the channel
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Oct 16, 2024
1 parent f183628 commit 0280c80
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class NewTransferViewModel @Inject constructor(
val alreadyUsedFileNames = buildSet { files.value.forEach { add(it.fileName) } }
val newFiles = transferFilesManager.getFiles(uris, alreadyUsedFileNames)

newFiles.forEach(filesToImport::trySend)
newFiles.forEach { filesToImport.send(it) }
}
}

Expand Down

0 comments on commit 0280c80

Please sign in to comment.