mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
populate draft toolbar
// FREEBIE
This commit is contained in:
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…
Reference in a new issue