|
|
|
@ -6,6 +6,12 @@
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
typedef NS_ENUM(NSUInteger, TSAttachmentPointerState) {
|
|
|
|
|
TSAttachmentPointerStateEnqueued = 0,
|
|
|
|
|
TSAttachmentPointerStateDownloading = 1,
|
|
|
|
|
TSAttachmentPointerStateFailed = 2,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* A TSAttachmentPointer is a yet-to-be-downloaded attachment.
|
|
|
|
|
*/
|
|
|
|
@ -18,8 +24,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
relay:(NSString *)relay NS_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, readonly) NSString *relay;
|
|
|
|
|
@property (atomic, readwrite, getter=isDownloading) BOOL downloading;
|
|
|
|
|
@property (atomic, readwrite, getter=hasFailed) BOOL failed;
|
|
|
|
|
@property (atomic) TSAttachmentPointerState state;
|
|
|
|
|
|
|
|
|
|
// Though now required, `digest` may be null for pre-existing records or from
|
|
|
|
|
// messages received from other clients
|
|
|
|
|