Merge pull request #1092 from mpretty-cyro/fix/qa-issues

Fixing issues uncovered during QA
This commit is contained in:
Morgan Pretty 2023-01-30 10:10:37 +11:00 committed by GitHub
commit cf916a5762
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -101,6 +101,9 @@ class VisibleMessageContentView : ConstraintLayout {
binding.deletedMessageView.root.isVisible = false
}
// Note: Need to clear the body to prevent the message bubble getting incorrectly
// sized based on text content from a recycled view
binding.bodyTextView.text = null
binding.quoteView.root.isVisible = message is MmsMessageRecord && message.quote != null
binding.linkPreviewView.root.isVisible = message is MmsMessageRecord && message.linkPreviews.isNotEmpty()
binding.untrustedView.root.isVisible = !contactIsTrusted && message is MmsMessageRecord && message.quote == null && message.linkPreviews.isEmpty()