Streamline usage of quoted message view.

This commit is contained in:
Matthew Chen 2018-04-11 18:21:35 -04:00
parent 195d357370
commit d7ae35f72c

View file

@ -179,7 +179,6 @@ NS_ASSUME_NONNULL_BEGIN
[quotedAuthorLabel setCompressionResistanceLow];
}
UILabel *quotedTextLabel;
{
// Stripe and text container.
UIView *stripeAndTextContainer = [UIView containerView];
@ -213,7 +212,7 @@ NS_ASSUME_NONNULL_BEGIN
[quoteStripView setCompressionResistanceHigh];
// Text.
quotedTextLabel = [self configureQuotedTextLabel];
UILabel *quotedTextLabel = [self configureQuotedTextLabel];
[stripeAndTextContainer addSubview:quotedTextLabel];
[quotedTextLabel autoPinTopToSuperviewMarginWithInset:self.quotedReplyStripeVExtension];
[quotedTextLabel autoPinBottomToSuperviewMarginWithInset:self.quotedReplyStripeVExtension];