From f5b9ae97ef57566a9afd85f3b8043fb0202ebdc3 Mon Sep 17 00:00:00 2001 From: sdkjfhsdkjhfsdlkjhfsdf Date: Tue, 19 Dec 2017 19:25:46 -0600 Subject: [PATCH] fix insets for incoming vs outgoin // FREEBIE --- .../ViewControllers/ConversationView/Cells/OWSMessageCell.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageCell.m b/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageCell.m index 7774355df..47a21a25d 100644 --- a/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageCell.m +++ b/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageCell.m @@ -65,7 +65,11 @@ NS_ASSUME_NONNULL_BEGIN // Since the caption has it's own tail, the media bubble just above // it looks better without a tail. if (self.hideTail) { - self.layoutMargins = UIEdgeInsetsMake(0, 0, 2, 8); + if (hasOutgoingMask) { + self.layoutMargins = UIEdgeInsetsMake(0, 0, 2, 8); + } else { + self.layoutMargins = UIEdgeInsetsMake(0, 8, 2, 0); + } maskedSubview.clipsToBounds = YES; // I arrived at this cornerRadius by superimposing the generated corner