Skip to content

Commit

Permalink
Fix preview link bug when replying
Browse files Browse the repository at this point in the history
  • Loading branch information
ariel10aguero committed Sep 20, 2023
1 parent d5dccd9 commit 1c99d7f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1214,11 +1214,15 @@ internal fun LayoutMessageHolderBinding.setBubbleMessageLinkPreviewLayout(
viewState: MessageHolderViewState,
onRowLayoutListener: MessageListAdapter.OnRowLayoutListener?,
) {
includeMessageHolderBubble.apply {

if (viewState.message?.thread?.isNotEmpty() == true) {
includeMessageLinkPreviewContact.root.gone
includeMessageLinkPreviewTribe.root.gone
includeMessageLinkPreviewUrl.root.gone

return
}

includeMessageHolderBubble.apply {
val previewLink = viewState.messageLinkPreview

val placeHolderAndTextColor = ContextCompat.getColor(
Expand Down

0 comments on commit 1c99d7f

Please sign in to comment.