From f91fd4b53547912a922763102ad39840fa1876b8 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 30 Jun 2026 11:35:20 +0200 Subject: [PATCH] Rename method to sendMedia --- .../impl/attachments/preview/AttachmentsPreviewPresenter.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,