Skip to content

Commit

Permalink
fix: handle empty filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Sep 14, 2023
1 parent 59ca120 commit ab24d86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class DecryptedLocalAttachment(
fun fromJsonObject(obj: JsonObject) = DecryptedLocalAttachment(
obj.get("fileUri").asString,
obj.get("mimeType").asString,
obj.get("filename").asString,
obj.get("filename")?.asString ?: "",
)

fun fromJson(json: String): DecryptedLocalAttachment {
Expand Down

0 comments on commit ab24d86

Please sign in to comment.