diff --git a/Classes/LinphoneUI/UIChatBubbleTextCell.m b/Classes/LinphoneUI/UIChatBubbleTextCell.m index 3f42a8ebc..235c1f0a9 100644 --- a/Classes/LinphoneUI/UIChatBubbleTextCell.m +++ b/Classes/LinphoneUI/UIChatBubbleTextCell.m @@ -393,7 +393,7 @@ static const CGFloat CELL_MESSAGE_Y_MARGIN = 52; // 44; + (CGSize)getMediaMessageSizefromOriginalSize:(CGSize)originalSize withWidth:(int)width { CGSize mediaSize = CGSizeMake(0, 0); int availableWidth = width - CELL_MESSAGE_X_MARGIN; - if (UIDeviceOrientationIsLandscape([[UIDevice currentDevice] orientation])) { + if (UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation])) { availableWidth = availableWidth /3; } int height = originalSize.height;