prevent the message bubble not being wide enough to show the corner radius for very short message

pull/541/head
Ryan Zhao 2 years ago
parent 279892e83b
commit e014fe0367

@ -66,6 +66,7 @@ final class VisibleMessageCell : MessageCell, LinkPreviewViewDelegate {
lazy var bubbleView: UIView = {
let result = UIView()
result.layer.cornerRadius = VisibleMessageCell.largeCornerRadius
result.set(.width, greaterThanOrEqualTo: VisibleMessageCell.largeCornerRadius * 2)
return result
}()

Loading…
Cancel
Save