From ad0d09483161c03a9755494e060dd97daebd6e09 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Wed, 5 Sep 2018 13:49:16 -0400 Subject: [PATCH] Fix build breakage. --- .../Cells/OWSMessageBubbleView.m | 20 ++----------------- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageBubbleView.m b/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageBubbleView.m index 62d9e6074..b449b77db 100644 --- a/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageBubbleView.m +++ b/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageBubbleView.m @@ -837,8 +837,9 @@ NS_ASSUME_NONNULL_BEGIN stillImageView.backgroundColor = [UIColor whiteColor]; [self addAttachmentUploadViewIfNecessary]; - __weak OWSMessageBubbleView *weakSelf = self; __weak UIImageView *weakImageView = stillImageView; + + __weak OWSMessageBubbleView *weakSelf = self; self.loadCellContentBlock = ^{ OWSMessageBubbleView *strongSelf = weakSelf; if (!strongSelf) { @@ -979,7 +980,6 @@ NS_ASSUME_NONNULL_BEGIN }]; __weak OWSMessageBubbleView *weakSelf = self; - __weak UIImageView *weakImageView = stillImageView; self.loadCellContentBlock = ^{ OWSMessageBubbleView *strongSelf = weakSelf; if (!strongSelf) { @@ -990,22 +990,6 @@ NS_ASSUME_NONNULL_BEGIN return; } stillImageView.image = [strongSelf - tryToLoadCellMedia:^{ - OWSCAssert([strongSelf.attachmentStream isImage]); - return [strongSelf.attachmentStream - thumbnailImageMediumWithSuccess:^(UIImage *image) { - weakImageView.image = image; - } - failure:^{ - DDLogError(@"Could not load thumbnail."); - }]; - } - mediaView:stillImageView - cacheKey:strongSelf.attachmentStream.uniqueId - shouldSkipCache:shouldSkipCache - canLoadAsync:YES]; - - tryToLoadCellMedia:^{ OWSCAssert([strongSelf.attachmentStream isVideo]);