mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-03 22:56:57 +02:00
Media Manager: refactoring (download video/image with a unique API)
This commit is contained in:
@@ -95,7 +95,7 @@
|
||||
if (self.message.attachmentURL) {
|
||||
|
||||
// check if there is a downlad in progress
|
||||
MediaLoader *loader = [MediaManager mediaLoaderForURL:self.message.attachmentURL];
|
||||
MediaLoader *loader = [MediaManager existingDownloaderForURL:self.message.attachmentURL];
|
||||
|
||||
NSDictionary *dict = loader.downloadStatsDict;
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
|
||||
- (void)cancelDownload {
|
||||
// get the linked medida loader
|
||||
MediaLoader *loader = [MediaManager mediaLoaderForURL:self.message.attachmentURL];
|
||||
MediaLoader *loader = [MediaManager existingDownloaderForURL:self.message.attachmentURL];
|
||||
if (loader) {
|
||||
[loader cancel];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user