mirror of
https://github.com/fromchat-messenger/app.git
synced 2026-09-22 19:15:05 +03:00
Fix redundant non-null assertion
Signed-off-by: denis0001-dev <denis0001.dev@ya.ru>
This commit is contained in:
@@ -94,7 +94,7 @@ fun AttachmentPreview(
|
||||
when {
|
||||
isFile -> {
|
||||
FileIconContent(
|
||||
filename = file!!.name,
|
||||
filename = file.name,
|
||||
sizeBytes = fileSizeBytes,
|
||||
onClick = onFileClick,
|
||||
isAuthor = isAuthor,
|
||||
@@ -114,7 +114,7 @@ fun AttachmentPreview(
|
||||
Box(
|
||||
modifier = modifier
|
||||
.conditional(
|
||||
fileAspectRatio != null && fileAspectRatio!! > 0f,
|
||||
fileAspectRatio != null && fileAspectRatio > 0f,
|
||||
`if` = {
|
||||
Modifier
|
||||
.aspectRatio(fileAspectRatio!!)
|
||||
@@ -130,10 +130,10 @@ fun AttachmentPreview(
|
||||
contentAlignment = Alignment.Center
|
||||
) {
|
||||
DecryptedImageContent(
|
||||
file = file!!,
|
||||
envelope = dmEnvelope!!,
|
||||
file = file,
|
||||
envelope = dmEnvelope,
|
||||
currentUserId = currentUserId,
|
||||
thumbnailBase64 = fileThumbnail!!,
|
||||
thumbnailBase64 = fileThumbnail,
|
||||
aspectRatio = fileAspectRatio
|
||||
)
|
||||
}
|
||||
@@ -142,7 +142,7 @@ fun AttachmentPreview(
|
||||
Box(
|
||||
modifier = modifier
|
||||
.conditional(
|
||||
fileAspectRatio != null && fileAspectRatio!! > 0f,
|
||||
fileAspectRatio != null && fileAspectRatio > 0f,
|
||||
`if` = {
|
||||
Modifier
|
||||
.aspectRatio(fileAspectRatio!!)
|
||||
@@ -158,7 +158,7 @@ fun AttachmentPreview(
|
||||
contentAlignment = Alignment.Center
|
||||
) {
|
||||
PendingImageContent(
|
||||
uri = pendingFileUri!!,
|
||||
uri = pendingFileUri,
|
||||
isUploading = isUploading,
|
||||
isImage = true
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user