[MatrixSDK] map the remaining EventContents
This commit is contained in:
parent
2dc44250fb
commit
ccde8adef3
7 changed files with 78 additions and 23 deletions
|
|
@ -17,7 +17,7 @@
|
|||
package io.element.android.libraries.core.extensions
|
||||
|
||||
/**
|
||||
* Can be used to transform some Throwable into some other
|
||||
* Can be used to transform some Throwable into some other.
|
||||
*/
|
||||
inline fun <R, T : R> Result<T>.mapFailure(transform: (exception: Throwable) -> Throwable): Result<R> {
|
||||
return when (val exception = exceptionOrNull()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue