use of org.thoughtcrime.securesms.sms.MessageSender.PreUploadResult in project Signal-Android by signalapp.
the class MediaUploadRepository method cancelUploadInternal.
private void cancelUploadInternal(@NonNull Media media) {
JobManager jobManager = ApplicationDependencies.getJobManager();
PreUploadResult result = uploadResults.get(media);
if (result != null) {
Stream.of(result.getJobIds()).forEach(jobManager::cancel);
uploadResults.remove(media);
}
}
Aggregations