mirror of
https://github.com/oxen-io/session-android.git
synced 2025-11-06 19:31:47 +00:00
Fixed an issue where the message bubble could be sized incorrectly
This commit is contained in:
@@ -101,6 +101,9 @@ class VisibleMessageContentView : ConstraintLayout {
|
|||||||
binding.deletedMessageView.root.isVisible = false
|
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.quoteView.root.isVisible = message is MmsMessageRecord && message.quote != null
|
||||||
binding.linkPreviewView.root.isVisible = message is MmsMessageRecord && message.linkPreviews.isNotEmpty()
|
binding.linkPreviewView.root.isVisible = message is MmsMessageRecord && message.linkPreviews.isNotEmpty()
|
||||||
binding.untrustedView.root.isVisible = !contactIsTrusted && message is MmsMessageRecord && message.quote == null && message.linkPreviews.isEmpty()
|
binding.untrustedView.root.isVisible = !contactIsTrusted && message is MmsMessageRecord && message.quote == null && message.linkPreviews.isEmpty()
|
||||||
|
|||||||
Reference in New Issue
Block a user