Make SyncResponseJson.Send.text nullable (#621)

This commit is contained in:
Brian Yencho 2024-01-15 12:23:52 -06:00 committed by Álison Fernandes
parent 0975ab9c7b
commit df3a6598b3
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,