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