Make SyncResponseJson.Send.text nullable (#621)

This commit is contained in:
Brian Yencho
2024-01-15 12:23:52 -06:00
committed by GitHub
parent 0b6b1ccade
commit c6173d0a47
2 changed files with 2 additions and 2 deletions

View File

@@ -835,7 +835,7 @@ data class SyncResponseJson(
val id: String,
@SerialName("text")
val text: Text,
val text: Text?,
@SerialName("key")
val key: String?,

View File

@@ -81,7 +81,7 @@ fun SyncResponseJson.Send.toEncryptedSdkSend(): Send =
password = password,
type = type.toSdkSendType(),
file = file?.toEncryptedSdkFile(),
text = text.toEncryptedSdkText(),
text = text?.toEncryptedSdkText(),
maxAccessCount = maxAccessCount?.toUInt(),
accessCount = accessCount.toUInt(),
disabled = isDisabled,