Convert some SignalServiceAttachment* classes to kotlin.

This commit is contained in:
Greyson Parrelli
2024-08-02 16:45:06 -04:00
committed by mtang-signal
parent bb01c0501b
commit 8932eef991
40 changed files with 431 additions and 673 deletions

View File

@@ -197,7 +197,7 @@ private fun AttachmentBlock(attachment: AttachmentInfo) {
)
ClickToCopyRow(
name = "Content Type",
value = attachment.contentType
value = attachment.contentType ?: "null"
)
ClickToCopyRow(
name = "Start Hash",

View File

@@ -62,7 +62,7 @@ class InternalMessageDetailsViewModel(val messageId: Long) : ViewModel() {
data class AttachmentInfo(
val id: Long,
val contentType: String,
val contentType: String?,
val size: Long,
val fileName: String?,
val hashStart: String?,