From 75a4455d15a33d3e8523e44134b9703c63f003da Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Fri, 30 Apr 2021 12:03:54 +0200 Subject: [PATCH] reorder methods --- .../session/room/send/DefaultSendService.kt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/send/DefaultSendService.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/send/DefaultSendService.kt index 26a87557ff..7cc238fcc9 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/send/DefaultSendService.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/send/DefaultSendService.kt @@ -109,14 +109,6 @@ internal class DefaultSendService @AssistedInject constructor( .let { sendEvent(it) } } - override fun sendMedias(attachments: List, - compressBeforeSending: Boolean, - roomIds: Set): Cancelable { - return attachments.mapTo(CancelableBag()) { - sendMedia(it, compressBeforeSending, roomIds) - } - } - override fun redactEvent(event: Event, reason: String?): Cancelable { // TODO manage media/attachements? val redactionEcho = localEchoEventFactory.createRedactEvent(roomId, event.eventId!!, reason) @@ -240,6 +232,14 @@ internal class DefaultSendService @AssistedInject constructor( } } + override fun sendMedias(attachments: List, + compressBeforeSending: Boolean, + roomIds: Set): Cancelable { + return attachments.mapTo(CancelableBag()) { + sendMedia(it, compressBeforeSending, roomIds) + } + } + override fun sendMedia(attachment: ContentAttachmentData, compressBeforeSending: Boolean, roomIds: Set): Cancelable {