From ae91b03c710d420868150ee35c74cd93d7d9c6c5 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Wed, 11 Apr 2018 12:21:38 -0400 Subject: [PATCH] Add white background to images in conversation view. --- .../ConversationView/Cells/OWSMessageBubbleView.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageBubbleView.m b/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageBubbleView.m index 20ca6373f..21ebde3c0 100644 --- a/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageBubbleView.m +++ b/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageBubbleView.m @@ -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;