mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 12:05:22 +00:00
Merge pull request #1463 from bemusementpark/fix-multi-preview
[SES-1732] Fix multiple link previews
This commit is contained in:
commit
569d0c23a2
@ -180,7 +180,7 @@ class InputBar : RelativeLayout, InputBarEditTextDelegate, QuoteViewDelegate, Li
|
|||||||
// message we'll bail early if a link preview View already exists and just let
|
// message we'll bail early if a link preview View already exists and just let
|
||||||
// `updateLinkPreview` get called to update the existing View.
|
// `updateLinkPreview` get called to update the existing View.
|
||||||
if (linkPreview != null && linkPreviewDraftView != null) return
|
if (linkPreview != null && linkPreviewDraftView != null) return
|
||||||
|
linkPreviewDraftView?.let(binding.inputBarAdditionalContentContainer::removeView)
|
||||||
linkPreviewDraftView = LinkPreviewDraftView(context).also { it.delegate = this }
|
linkPreviewDraftView = LinkPreviewDraftView(context).also { it.delegate = this }
|
||||||
|
|
||||||
// Add the link preview View. Note: If there's already a quote View in the 'additional
|
// Add the link preview View. Note: If there's already a quote View in the 'additional
|
||||||
|
Loading…
Reference in New Issue
Block a user