From c4aeecdf4bc2b8a7bbbb8cde35e2aac08e6ce6c2 Mon Sep 17 00:00:00 2001 From: Ryan Zhao Date: Mon, 29 Aug 2022 14:52:11 +1000 Subject: [PATCH] tweak: fully rounded corners for all message bubbles --- .../Message Cells/VisibleMessageCell.swift | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Session/Conversations/Message Cells/VisibleMessageCell.swift b/Session/Conversations/Message Cells/VisibleMessageCell.swift index 721244882..f7b23ca19 100644 --- a/Session/Conversations/Message Cells/VisibleMessageCell.swift +++ b/Session/Conversations/Message Cells/VisibleMessageCell.swift @@ -900,19 +900,7 @@ final class VisibleMessageCell: MessageCell, TappableLabelDelegate { // MARK: - Convenience private func getCornersToRound() -> UIRectCorner { - guard viewModel?.isOnlyMessageInCluster == false else { return .allCorners } - - let direction: Direction = (viewModel?.variant == .standardOutgoing ? .outgoing : .incoming) - - switch (viewModel?.positionInCluster, direction) { - case (.top, .outgoing): return [ .bottomLeft, .topLeft, .topRight ] - case (.middle, .outgoing): return [ .bottomLeft, .topLeft ] - case (.bottom, .outgoing): return [ .bottomRight, .bottomLeft, .topLeft ] - case (.top, .incoming): return [ .topLeft, .topRight, .bottomRight ] - case (.middle, .incoming): return [ .topRight, .bottomRight ] - case (.bottom, .incoming): return [ .topRight, .bottomRight, .bottomLeft ] - case (.none, _): return .allCorners - } + return .allCorners } private func getCornerMask(from rectCorner: UIRectCorner) -> CACornerMask {