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 18, 2024
1 parent ba7660a commit 6b89d02
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 6b89d02

Please sign in to comment.