From 49616d9b98c00a0cee0c0e2b89c95470da7a39a9 Mon Sep 17 00:00:00 2001 From: Philippe Weidmann Date: Tue, 10 Dec 2024 10:20:23 +0100 Subject: [PATCH] fix(InitUploadBody): Correctly encode `recipientsEmails` --- .../network/models/upload/request/InitUploadBody.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/request/InitUploadBody.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/request/InitUploadBody.kt index e14ee030..a45868d0 100644 --- a/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/request/InitUploadBody.kt +++ b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/request/InitUploadBody.kt @@ -51,6 +51,6 @@ class InitUploadBody( recaptcha = recaptcha, language = uploadSession.language.code, files = Json.encodeToString(uploadSession.files.mapToList(::UploadFileRequest)), - recipientsEmails = uploadSession.recipientsEmails.joinToString(prefix = "[", postfix = "]"), + recipientsEmails = Json.encodeToString(uploadSession.recipientsEmails), ) }