diff --git a/Riot/Modules/Room/TimelineCells/Styles/Bubble/Cells/TextMessage/Common/TextMessageBaseBubbleCell.swift b/Riot/Modules/Room/TimelineCells/Styles/Bubble/Cells/TextMessage/Common/TextMessageBaseBubbleCell.swift index 86584f9aa..bcff96d17 100644 --- a/Riot/Modules/Room/TimelineCells/Styles/Bubble/Cells/TextMessage/Common/TextMessageBaseBubbleCell.swift +++ b/Riot/Modules/Room/TimelineCells/Styles/Bubble/Cells/TextMessage/Common/TextMessageBaseBubbleCell.swift @@ -32,21 +32,23 @@ class TextMessageBaseBubbleCell: SizableBaseRoomCell, RoomCellURLPreviewDisplaya // MARK: - Overrides override func setupViews() { - super.setupViews() roomCellContentView?.backgroundColor = .clear - guard let contentView = roomCellContentView?.innerContentView else { - return - } - roomCellContentView?.innerContentViewBottomContraint.constant = BubbleRoomCellLayoutConstants.innerContentViewMargins.bottom let textMessageContentView = TextMessageBubbleCellContentView.instantiate() - contentView.vc_addSubViewMatchingParent(textMessageContentView) + roomCellContentView?.innerContentView.vc_addSubViewMatchingParent(textMessageContentView) self.textMessageContentView = textMessageContentView + + // Setup messageTextView property first before running `setupMessageTextView` method + super.setupViews() + } + + override func setupMessageTextViewLongPressGesture() { + // Do nothing, otherwise default setup prevent link tap } override func update(theme: Theme) {