mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +03:00
reorder methods
This commit is contained in:
parent
c9abdb5def
commit
75a4455d15
1 changed files with 8 additions and 8 deletions
|
@ -109,14 +109,6 @@ internal class DefaultSendService @AssistedInject constructor(
|
||||||
.let { sendEvent(it) }
|
.let { sendEvent(it) }
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun sendMedias(attachments: List<ContentAttachmentData>,
|
|
||||||
compressBeforeSending: Boolean,
|
|
||||||
roomIds: Set<String>): Cancelable {
|
|
||||||
return attachments.mapTo(CancelableBag()) {
|
|
||||||
sendMedia(it, compressBeforeSending, roomIds)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun redactEvent(event: Event, reason: String?): Cancelable {
|
override fun redactEvent(event: Event, reason: String?): Cancelable {
|
||||||
// TODO manage media/attachements?
|
// TODO manage media/attachements?
|
||||||
val redactionEcho = localEchoEventFactory.createRedactEvent(roomId, event.eventId!!, reason)
|
val redactionEcho = localEchoEventFactory.createRedactEvent(roomId, event.eventId!!, reason)
|
||||||
|
@ -240,6 +232,14 @@ internal class DefaultSendService @AssistedInject constructor(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun sendMedias(attachments: List<ContentAttachmentData>,
|
||||||
|
compressBeforeSending: Boolean,
|
||||||
|
roomIds: Set<String>): Cancelable {
|
||||||
|
return attachments.mapTo(CancelableBag()) {
|
||||||
|
sendMedia(it, compressBeforeSending, roomIds)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override fun sendMedia(attachment: ContentAttachmentData,
|
override fun sendMedia(attachment: ContentAttachmentData,
|
||||||
compressBeforeSending: Boolean,
|
compressBeforeSending: Boolean,
|
||||||
roomIds: Set<String>): Cancelable {
|
roomIds: Set<String>): Cancelable {
|
||||||
|
|
Loading…
Reference in a new issue