mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-08-29 07:16:08 +00:00
feat: Disable image click when spoiler is visible
This commit is contained in:
parent
5e5c42d50e
commit
f71750630f
@ -110,7 +110,7 @@ fun ImageMessageItem(
|
||||
.widthIn(max = 300.dp)
|
||||
.aspectRatio(aspect)
|
||||
.clip(androidx.compose.foundation.shape.RoundedCornerShape(10.dp))
|
||||
.clickable {
|
||||
.clickable(enabled = !isSpoilerVisible) {
|
||||
val currentIndex = imagePaths.indexOf(path)
|
||||
onImageClick?.invoke(path, imagePaths, currentIndex)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user