mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-17 12:58:25 +00:00
Hide thumbnails
This commit is contained in:
parent
8be1e8e87e
commit
c417b37236
@ -183,7 +183,8 @@ class MessageDetailActivity : PassphraseRequiredActionBarActivity() {
|
||||
bind(
|
||||
message,
|
||||
thread = message.individualRecipient,
|
||||
onAttachmentNeedsDownload = ::onAttachmentNeedsDownload
|
||||
onAttachmentNeedsDownload = ::onAttachmentNeedsDownload,
|
||||
suppressThumbnails = true
|
||||
)
|
||||
|
||||
setOnTouchListener { _, event ->
|
||||
|
@ -66,7 +66,8 @@ class VisibleMessageContentView : ConstraintLayout {
|
||||
thread: Recipient,
|
||||
searchQuery: String? = null,
|
||||
contactIsTrusted: Boolean = true,
|
||||
onAttachmentNeedsDownload: (Long, Long) -> Unit
|
||||
onAttachmentNeedsDownload: (Long, Long) -> Unit,
|
||||
suppressThumbnails: Boolean = false
|
||||
) {
|
||||
// Background
|
||||
val background = getBackground(message.isOutgoing)
|
||||
@ -188,7 +189,7 @@ class VisibleMessageContentView : ConstraintLayout {
|
||||
onContentClick.add { binding.untrustedView.root.showTrustDialog(message.individualRecipient) }
|
||||
}
|
||||
}
|
||||
message is MmsMessageRecord && message.slideDeck.asAttachments().isNotEmpty() -> {
|
||||
message is MmsMessageRecord && !suppressThumbnails && message.slideDeck.asAttachments().isNotEmpty() -> {
|
||||
/*
|
||||
* Images / Video attachment
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user