minor formatting

This commit is contained in:
Tibor Kaputa 2022-11-06 10:41:58 +01:00 committed by GitHub
parent 6bf9d6399e
commit 83677681e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -334,9 +334,8 @@ fun Context.getMmsAttachment(id: Long, getImageResolutions: Boolean): MessageAtt
val attachment = Attachment(partId, id, fileUri.toString(), mimetype, width, height, "") val attachment = Attachment(partId, id, fileUri.toString(), mimetype, width, height, "")
messageAttachment.attachments.add(attachment) messageAttachment.attachments.add(attachment)
} else if (mimetype != "application/smil") { } else if (mimetype != "application/smil") {
val attachment = Attachment( val attachmentName = attachmentNames?.getOrNull(attachmentCount) ?: ""
partId, id, Uri.withAppendedPath(uri, partId.toString()).toString(), mimetype, 0, 0, attachmentNames?.getOrNull(attachmentCount) ?: "" val attachment = Attachment(partId, id, Uri.withAppendedPath(uri, partId.toString()).toString(), mimetype, 0, 0, attachmentName)
)
messageAttachment.attachments.add(attachment) messageAttachment.attachments.add(attachment)
attachmentCount++ attachmentCount++
} else { } else {