diff --git a/STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/upload/UploadSessionDB.kt b/STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/upload/UploadSessionDB.kt index ae37eb2a..28ced5ea 100644 --- a/STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/upload/UploadSessionDB.kt +++ b/STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/upload/UploadSessionDB.kt @@ -64,7 +64,7 @@ class UploadSessionDB() : UploadSession, RealmObject { this.message = uploadSession.message this._numberOfDownload = uploadSession.numberOfDownload.value this.language = uploadSession.language - this.recipientsEmails = realmSetOf(*uploadSession.recipientsEmails.toTypedArray()) + this.recipientsEmails = uploadSession.recipientsEmails.mapTo(destination = realmSetOf(), transform = { it }) this.files = uploadSession.files.mapTo(realmListOf(), ::UploadFileSessionDB) } }