test: add tests for the legacy API

This commit is contained in:
Adam Cooke
2024-03-13 22:40:41 +00:00
committed by Adam Cooke
parent 1c67f72209
commit 3d208d632f
6 changed files with 784 additions and 3 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ class OutgoingMessagePrototype
{
name: attachment[:name],
content_type: attachment[:content_type] || "application/octet-stream",
data: attachment[:base64] ? Base64.decode64(attachment[:data]) : attachment[:data]
data: attachment[:base64] && attachment[:data] ? Base64.decode64(attachment[:data]) : attachment[:data]
}
end
end