mirror of https://github.com/oxen-io/session-ios
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			51 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Objective-C
		
	
			
		
		
	
	
			51 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Objective-C
		
	
| //
 | |
| //  Copyright (c) 2019 Open Whisper Systems. All rights reserved.
 | |
| //
 | |
| 
 | |
| #import "OWSBubbleView.h"
 | |
| 
 | |
| NS_ASSUME_NONNULL_BEGIN
 | |
| 
 | |
| @class ConversationStyle;
 | |
| @class DisplayableText;
 | |
| @class OWSBubbleShapeView;
 | |
| @class OWSQuotedReplyModel;
 | |
| @class TSAttachmentPointer;
 | |
| @class TSQuotedMessage;
 | |
| 
 | |
| @protocol OWSQuotedMessageViewDelegate
 | |
| 
 | |
| - (void)didTapQuotedReply:(OWSQuotedReplyModel *)quotedReply
 | |
|     failedThumbnailDownloadAttachmentPointer:(TSAttachmentPointer *)attachmentPointer;
 | |
| 
 | |
| - (void)didCancelQuotedReply;
 | |
| 
 | |
| @end
 | |
| 
 | |
| @interface OWSQuotedMessageView : UIView
 | |
| 
 | |
| @property (nonatomic, nullable, weak) id<OWSQuotedMessageViewDelegate> delegate;
 | |
| 
 | |
| - (instancetype)init NS_UNAVAILABLE;
 | |
| 
 | |
| // Only needs to be called if we're going to render this instance.
 | |
| - (void)createContents;
 | |
| 
 | |
| // Measurement
 | |
| - (CGSize)sizeForMaxWidth:(CGFloat)maxWidth;
 | |
| 
 | |
| // Factory method for "message bubble" views.
 | |
| + (OWSQuotedMessageView *)quotedMessageViewForConversation:(OWSQuotedReplyModel *)quotedMessage
 | |
|                                      displayableQuotedText:(nullable DisplayableText *)displayableQuotedText
 | |
|                                          conversationStyle:(ConversationStyle *)conversationStyle
 | |
|                                                 isOutgoing:(BOOL)isOutgoing
 | |
|                                               sharpCorners:(OWSDirectionalRectCorner)sharpCorners;
 | |
| 
 | |
| // Factory method for "message compose" views.
 | |
| + (OWSQuotedMessageView *)quotedMessageViewForPreview:(OWSQuotedReplyModel *)quotedMessage
 | |
|                                     conversationStyle:(ConversationStyle *)conversationStyle;
 | |
| 
 | |
| @end
 | |
| 
 | |
| NS_ASSUME_NONNULL_END
 |