Hide thumbnails

This commit is contained in:
andrew 2023-07-06 15:23:58 +09:30
parent 8be1e8e87e
commit c417b37236
2 changed files with 5 additions and 3 deletions

View File

@ -183,7 +183,8 @@ class MessageDetailActivity : PassphraseRequiredActionBarActivity() {
bind(
message,
thread = message.individualRecipient,
onAttachmentNeedsDownload = ::onAttachmentNeedsDownload
onAttachmentNeedsDownload = ::onAttachmentNeedsDownload,
suppressThumbnails = true
)
setOnTouchListener { _, event ->

View File

@ -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
*/