|
|
@ -49,6 +49,7 @@ typedef void (^SystemMessageActionBlock)(void);
|
|
|
|
@property (nonatomic) UILabel *titleLabel;
|
|
|
|
@property (nonatomic) UILabel *titleLabel;
|
|
|
|
@property (nonatomic) UIButton *button;
|
|
|
|
@property (nonatomic) UIButton *button;
|
|
|
|
@property (nonatomic) UIStackView *vStackView;
|
|
|
|
@property (nonatomic) UIStackView *vStackView;
|
|
|
|
|
|
|
|
@property (nonatomic) UIView *cellBackgroundView;
|
|
|
|
@property (nonatomic) OWSMessageHeaderView *headerView;
|
|
|
|
@property (nonatomic) OWSMessageHeaderView *headerView;
|
|
|
|
@property (nonatomic) NSLayoutConstraint *headerViewHeightConstraint;
|
|
|
|
@property (nonatomic) NSLayoutConstraint *headerViewHeightConstraint;
|
|
|
|
@property (nonatomic) NSArray<NSLayoutConstraint *> *layoutConstraints;
|
|
|
|
@property (nonatomic) NSArray<NSLayoutConstraint *> *layoutConstraints;
|
|
|
@ -114,6 +115,7 @@ typedef void (^SystemMessageActionBlock)(void);
|
|
|
|
self.vStackView.spacing = self.buttonVSpacing;
|
|
|
|
self.vStackView.spacing = self.buttonVSpacing;
|
|
|
|
self.vStackView.alignment = UIStackViewAlignmentCenter;
|
|
|
|
self.vStackView.alignment = UIStackViewAlignmentCenter;
|
|
|
|
self.vStackView.layoutMarginsRelativeArrangement = YES;
|
|
|
|
self.vStackView.layoutMarginsRelativeArrangement = YES;
|
|
|
|
|
|
|
|
self.cellBackgroundView = [self.vStackView addBackgroundViewWithBackgroundColor:Theme.backgroundColor];
|
|
|
|
|
|
|
|
|
|
|
|
UIStackView *cellStackView = [[UIStackView alloc] initWithArrangedSubviews:@[ self.headerView, self.vStackView ]];
|
|
|
|
UIStackView *cellStackView = [[UIStackView alloc] initWithArrangedSubviews:@[ self.headerView, self.vStackView ]];
|
|
|
|
cellStackView.axis = UILayoutConstraintAxisVertical;
|
|
|
|
cellStackView.axis = UILayoutConstraintAxisVertical;
|
|
|
@ -162,6 +164,8 @@ typedef void (^SystemMessageActionBlock)(void);
|
|
|
|
OWSAssert(self.viewItem);
|
|
|
|
OWSAssert(self.viewItem);
|
|
|
|
OWSAssert(transaction);
|
|
|
|
OWSAssert(transaction);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.cellBackgroundView.backgroundColor = [Theme backgroundColor];
|
|
|
|
|
|
|
|
|
|
|
|
[self.button setBackgroundColor:Theme.conversationButtonBackgroundColor];
|
|
|
|
[self.button setBackgroundColor:Theme.conversationButtonBackgroundColor];
|
|
|
|
|
|
|
|
|
|
|
|
TSInteraction *interaction = self.viewItem.interaction;
|
|
|
|
TSInteraction *interaction = self.viewItem.interaction;
|
|
|
|