mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
c70b1e9681
// FREEBIE
35 lines
956 B
Objective-C
35 lines
956 B
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import <JSQMessagesViewController/JSQMessagesCollectionViewCell.h>
|
|
#import <UIKit/UIKit.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class TSInteraction;
|
|
@class OWSSystemMessageCell;
|
|
|
|
@protocol OWSSystemMessageCellDelegate <NSObject>
|
|
|
|
- (void)didTapSystemMessageWithInteraction:(TSInteraction *)interaction;
|
|
- (void)didLongPressSystemMessageCell:(OWSSystemMessageCell *)systemMessageCell;
|
|
|
|
@end
|
|
|
|
#pragma mark -
|
|
|
|
@interface OWSSystemMessageCell : JSQMessagesCollectionViewCell
|
|
|
|
@property (nonatomic, weak) id<OWSSystemMessageCellDelegate> systemMessageCellDelegate;
|
|
|
|
@property (nonatomic, readonly) UILabel *titleLabel;
|
|
@property (nonatomic, nullable, readonly) TSInteraction *interaction;
|
|
|
|
- (void)configureWithInteraction:(TSInteraction *)interaction;
|
|
|
|
- (CGSize)bubbleSizeForInteraction:(TSInteraction *)interaction collectionViewWidth:(CGFloat)collectionViewWidth;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|