[MatrixSDK] map the remaining EventContents

This commit is contained in:
ganfra 2023-03-14 12:28:46 +01:00
parent 2dc44250fb
commit ccde8adef3
7 changed files with 78 additions and 23 deletions

View file

@ -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()) {