Merge branch 'charlesmchen/maxBodyMediaWidth'
This commit is contained in:
commit
9ea398afd9
@ -988,7 +988,10 @@ const UIDataDetectorTypes kOWSAllowedDataDetectorTypes
|
||||
OWSAssertDebug(self.conversationStyle);
|
||||
OWSAssertDebug(self.conversationStyle.maxMessageWidth > 0);
|
||||
|
||||
CGFloat maxMessageWidth = self.conversationStyle.maxMessageWidth;
|
||||
// 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) {
|
||||
CGFloat hMargins = self.conversationStyle.textInsetHorizontal * 2;
|
||||
maxMessageWidth -= hMargins;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user