feat: Disable image click when spoiler is visible

This commit is contained in:
yet300 2026-01-15 12:42:13 +04:00
parent 5e5c42d50e
commit f71750630f

View File

@ -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)
}