mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 16:49:40 +01:00
Convert some SignalServiceAttachment* classes to kotlin.
This commit is contained in:
committed by
mtang-signal
parent
bb01c0501b
commit
8932eef991
@@ -197,7 +197,7 @@ private fun AttachmentBlock(attachment: AttachmentInfo) {
|
||||
)
|
||||
ClickToCopyRow(
|
||||
name = "Content Type",
|
||||
value = attachment.contentType
|
||||
value = attachment.contentType ?: "null"
|
||||
)
|
||||
ClickToCopyRow(
|
||||
name = "Start Hash",
|
||||
|
||||
@@ -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?,
|
||||
|
||||
Reference in New Issue
Block a user