From 6a132a065e917af43448ce2a24d56e5538e656e4 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Thu, 31 Jan 2019 15:07:23 -0500 Subject: [PATCH] Add upper bound on body media size. --- .../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 118751365..11d84f1bd 100644 --- a/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageBubbleView.m +++ b/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageBubbleView.m @@ -988,6 +988,8 @@ const UIDataDetectorTypes kOWSAllowedDataDetectorTypes OWSAssertDebug(self.conversationStyle); OWSAssertDebug(self.conversationStyle.maxMessageWidth > 0); + // This upper bound should have no effect in portrait orientation. + // It limits body media size in landscape. const CGFloat kMaxBodyMediaSize = 350; CGFloat maxMessageWidth = MIN(kMaxBodyMediaSize, self.conversationStyle.maxMessageWidth); if (!self.hasFullWidthMediaView) {