Enable detekt rules CascadingCallWrapping and fix existing issues.
This commit is contained in:
parent
17155a7426
commit
e0255777c0
12 changed files with 33 additions and 16 deletions
|
|
@ -103,14 +103,17 @@ class MediaViewerPresenter @AssistedInject constructor(
|
|||
)
|
||||
.onSuccess {
|
||||
mediaFile.value = it
|
||||
}.mapCatching { mediaFile ->
|
||||
}
|
||||
.mapCatching { mediaFile ->
|
||||
localMediaFactory.createFromMediaFile(
|
||||
mediaFile = mediaFile,
|
||||
mediaInfo = inputs.mediaInfo
|
||||
)
|
||||
}.onSuccess {
|
||||
}
|
||||
.onSuccess {
|
||||
localMedia.value = Async.Success(it)
|
||||
}.onFailure {
|
||||
}
|
||||
.onFailure {
|
||||
localMedia.value = Async.Failure(it)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -268,7 +268,8 @@ class MessageComposerPresenter @Inject constructor(
|
|||
mediaSender.sendMedia(uri, mimeType, compressIfPossible = false, progressCallback)
|
||||
.onSuccess {
|
||||
attachmentState.value = AttachmentsState.None
|
||||
}.onFailure {
|
||||
}
|
||||
.onFailure {
|
||||
val snackbarMessage = SnackbarMessage(sendAttachmentError(it))
|
||||
snackbarDispatcher.post(snackbarMessage)
|
||||
attachmentState.value = AttachmentsState.None
|
||||
|
|
|
|||
|
|
@ -73,7 +73,8 @@ class RoomListDataSource @Inject constructor(
|
|||
}
|
||||
.onEach {
|
||||
_filteredRooms.value = it
|
||||
}.launchIn(coroutineScope)
|
||||
}
|
||||
.launchIn(coroutineScope)
|
||||
}
|
||||
|
||||
fun updateFilter(filterValue: String) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue