Merge branch 'charlesmchen/transparentImages'

This commit is contained in:
Matthew Chen 2018-04-11 13:45:21 -04:00
commit 84b0f57c1a

View file

@ -564,6 +564,7 @@ NS_ASSUME_NONNULL_BEGIN
// some performance cost.
stillImageView.layer.minificationFilter = kCAFilterTrilinear;
stillImageView.layer.magnificationFilter = kCAFilterTrilinear;
stillImageView.backgroundColor = [UIColor whiteColor];
[self addAttachmentUploadViewIfNecessary:stillImageView];
__weak OWSMessageBubbleView *weakSelf = self;
@ -611,6 +612,7 @@ NS_ASSUME_NONNULL_BEGIN
// We need to specify a contentMode since the size of the image
// might not match the aspect ratio of the view.
animatedImageView.contentMode = UIViewContentModeScaleAspectFill;
animatedImageView.backgroundColor = [UIColor whiteColor];
[self addAttachmentUploadViewIfNecessary:animatedImageView];
__weak OWSMessageBubbleView *weakSelf = self;