populate draft toolbar

// FREEBIE
pull/1/head
Michael Kirk 7 years ago
parent 253435b27f
commit 55c6d99d98

@ -250,7 +250,7 @@ static const CGFloat ConversationInputToolbarBorderViewHeight = 0.5;
[self ensureContentConstraints];
}
- (void)setQuotedMessage:(nullable OWSQuotedReplyDraft *)quotedReplyDraft
- (void)setQuotedReplyDraft:(nullable OWSQuotedReplyDraft *)quotedReplyDraft
{
if (quotedReplyDraft == _quotedReplyDraft) {
return;

@ -47,6 +47,11 @@ NS_ASSUME_NONNULL_BEGIN
return self.attachmentStream.sourceFilename;
}
- (nullable NSString *)thumbnailImage
{
return self.attachmentStream.thumbnailImage;
}
- (instancetype)initWithTimestamp:(uint64_t)timestamp
authorId:(NSString *)authorId
body:(NSString *_Nullable)body
@ -149,6 +154,13 @@ NS_ASSUME_NONNULL_BEGIN
return firstAttachment.contentType;
}
- (nullable NSString *)sourceFilename
{
OWSAttachmentInfo *firstAttachment = self.firstThumbnailAttachment;
return firstAttachment.sourceFilename;
}
- (BOOL)hasThumbnailAttachments
{
return self.thumbnailAttachments.count > 0;

Loading…
Cancel
Save