|
|
@ -3,6 +3,8 @@
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#import "OWSFailedAttachmentDownloadsJob.h"
|
|
|
|
#import "OWSFailedAttachmentDownloadsJob.h"
|
|
|
|
|
|
|
|
#import "SSKEnvironment.h"
|
|
|
|
|
|
|
|
#import "OWSAttachmentDownloads.h"
|
|
|
|
#import "OWSPrimaryStorage.h"
|
|
|
|
#import "OWSPrimaryStorage.h"
|
|
|
|
#import "TSAttachmentPointer.h"
|
|
|
|
#import "TSAttachmentPointer.h"
|
|
|
|
#import <YapDatabase/YapDatabase.h>
|
|
|
|
#import <YapDatabase/YapDatabase.h>
|
|
|
@ -25,6 +27,12 @@ static NSString *const OWSFailedAttachmentDownloadsJobAttachmentStateIndex = @"i
|
|
|
|
|
|
|
|
|
|
|
|
@implementation OWSFailedAttachmentDownloadsJob
|
|
|
|
@implementation OWSFailedAttachmentDownloadsJob
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- (OWSAttachmentDownloads *)attachmentDownloads
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return SSKEnvironment.shared.attachmentDownloads;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- (instancetype)initWithPrimaryStorage:(OWSPrimaryStorage *)primaryStorage
|
|
|
|
- (instancetype)initWithPrimaryStorage:(OWSPrimaryStorage *)primaryStorage
|
|
|
|
{
|
|
|
|
{
|
|
|
|
self = [super init];
|
|
|
|
self = [super init];
|
|
|
|