diff --git a/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/attachments/preview/AttachmentsPreviewPresenter.kt b/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/attachments/preview/AttachmentsPreviewPresenter.kt index 3ea9fc30e1..5f7939f826 100644 --- a/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/attachments/preview/AttachmentsPreviewPresenter.kt +++ b/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/attachments/preview/AttachmentsPreviewPresenter.kt @@ -246,7 +246,7 @@ class AttachmentsPreviewPresenter( // Send the media using the session coroutine scope so it doesn't matter if this screen or the chat one are closed sessionCoroutineScope.launch(dispatchers.io) { - sendGalleryPreProcessed( + sendMedia( mediaUploadInfos = allMediaUploadInfos, caption = caption, sendActionState = sendActionState, @@ -478,7 +478,7 @@ class AttachmentsPreviewPresenter( sendActionState.value = SendActionState.Idle } - private suspend fun sendGalleryPreProcessed( + private suspend fun sendMedia( mediaUploadInfos: List, caption: String?, sendActionState: MutableState,