|
|
|
@ -29,11 +29,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
// messages received from other clients
|
|
|
|
|
@property (nullable, nonatomic) NSData *digest;
|
|
|
|
|
|
|
|
|
|
// A serialized image which lives in the db, accessible without additional disk access.
|
|
|
|
|
// This is useful for the gallery view which allows us to fetch potentially many
|
|
|
|
|
// attachments in a single read.
|
|
|
|
|
@property (nullable, readonly) UIImage *thumbnailImage;
|
|
|
|
|
|
|
|
|
|
// This only applies for attachments being uploaded.
|
|
|
|
|
@property (atomic) BOOL isUploaded;
|
|
|
|
|
|
|
|
|
@ -51,6 +46,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
- (nullable NSURL *)mediaURL;
|
|
|
|
|
|
|
|
|
|
- (nullable NSString *)filePath;
|
|
|
|
|
- (nullable NSString *)thumbnailPath;
|
|
|
|
|
|
|
|
|
|
- (nullable NSData *)readDataFromFileWithError:(NSError **)error;
|
|
|
|
|
- (BOOL)writeData:(NSData *)data error:(NSError **)error;
|
|
|
|
|