clarify method signature

// FREEBIE
pull/1/head
Michael Kirk 7 years ago
parent c56e8acc51
commit 941b7ec1bc

@ -48,7 +48,6 @@ NSString *NSStringForOWSMessageCellType(OWSMessageCellType cellType);
@property (nonatomic, readonly) BOOL hasBodyText;
// TODO drive these off of the quotedReply?
@property (nonatomic, readonly) BOOL isQuotedReply;
@property (nonatomic, readonly) BOOL hasQuotedAttachment;
@property (nonatomic, readonly) BOOL hasQuotedText;

@ -77,13 +77,13 @@ NS_ASSUME_NONNULL_BEGIN
- (instancetype)init NS_UNAVAILABLE;
// used in message manager
// used when receiving quoted messages
- (instancetype)initWithTimestamp:(uint64_t)timestamp
authorId:(NSString *)authorId
body:(NSString *_Nullable)body
quotedAttachmentInfos:(NSArray<OWSAttachmentInfo *> *)attachmentInfos;
receivedQuotedAttachmentInfos:(NSArray<OWSAttachmentInfo *> *)attachmentInfos;
// used by OWSAttachmentInfo#buildQuotedMessage
// used when sending quoted messages
- (instancetype)initWithTimestamp:(uint64_t)timestamp
authorId:(NSString *)authorId
body:(NSString *_Nullable)body

@ -58,7 +58,7 @@ NS_ASSUME_NONNULL_BEGIN
- (instancetype)initWithTimestamp:(uint64_t)timestamp
authorId:(NSString *)authorId
body:(NSString *_Nullable)body
quotedAttachmentInfos:(NSArray<OWSAttachmentInfo *> *)attachmentInfos
receivedQuotedAttachmentInfos:(NSArray<OWSAttachmentInfo *> *)attachmentInfos
{
OWSAssert(timestamp > 0);
OWSAssert(authorId.length > 0);
@ -187,7 +187,7 @@ NS_ASSUME_NONNULL_BEGIN
return [[TSQuotedMessage alloc] initWithTimestamp:timestamp
authorId:authorId
body:body
quotedAttachmentInfos:attachmentInfos];
receivedQuotedAttachmentInfos:attachmentInfos];
}
+ (nullable TSAttachmentStream *)tryToDeriveLocalThumbnailWithAttachmentInfo:(OWSAttachmentInfo *)attachmentInfo

Loading…
Cancel
Save