From ae7a37a3753f1b7c820aceaa029e6f82d4f75a24 Mon Sep 17 00:00:00 2001 From: Fabian Devel Date: Tue, 17 Dec 2024 16:02:47 +0100 Subject: [PATCH] feat(AddressTextField): Use real value instead of an emptyList --- .../ui/screen/newtransfer/ImportFilesViewModel.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/ImportFilesViewModel.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/ImportFilesViewModel.kt index 73c1f6216..571a30ffc 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/ImportFilesViewModel.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/ImportFilesViewModel.kt @@ -26,9 +26,9 @@ import androidx.compose.runtime.setValue import androidx.lifecycle.SavedStateHandle import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope -import com.infomaniak.core2.isEmail import com.infomaniak.core2.appintegrity.AppIntegrityManager import com.infomaniak.core2.appintegrity.AppIntegrityManager.Companion.APP_INTEGRITY_MANAGER_TAG +import com.infomaniak.core2.isEmail import com.infomaniak.multiplatform_swisstransfer.common.interfaces.upload.RemoteUploadFile import com.infomaniak.multiplatform_swisstransfer.common.interfaces.upload.UploadFileSession import com.infomaniak.multiplatform_swisstransfer.common.utils.mapToList @@ -238,7 +238,7 @@ class ImportFilesViewModel @Inject constructor( message = _transferMessage, numberOfDownload = selectedDownloadLimitOption.value.apiValue, language = selectedLanguageOption.value.apiValue, - recipientsEmails = emptyList(), + recipientsEmails = _validatedRecipientsEmails.toList(), files = importationFilesManager.importedFiles.value.mapToList { fileUi -> object : UploadFileSession { override val path: String? = null