Fix quote clearing bug

This commit is contained in:
Niels Andriesse 2021-06-28 16:03:41 +10:00
parent fa71c81ea9
commit fcdd3d9149

View File

@ -152,6 +152,7 @@ class InputBar : RelativeLayout, InputBarEditTextDelegate, QuoteViewDelegate, Li
}
override fun cancelLinkPreviewDraft() {
if (quote != null) { return }
linkPreview = null
inputBarAdditionalContentContainer.removeAllViews()
val newHeight = max(inputBarEditText.height + 2 * vMargin, minHeight)