Some clean up
This commit is contained in:
@@ -19,8 +19,8 @@ package io.element.android.x
|
||||
import android.app.Application
|
||||
import androidx.startup.AppInitializer
|
||||
import io.element.android.x.di.AppComponent
|
||||
import io.element.android.x.di.DaggerAppComponent
|
||||
import io.element.android.libraries.di.DaggerComponentOwner
|
||||
import io.element.android.x.di.DaggerAppComponent
|
||||
import io.element.android.x.info.logApplicationInfo
|
||||
import io.element.android.x.initializer.CrashInitializer
|
||||
import io.element.android.x.initializer.MatrixInitializer
|
||||
|
||||
@@ -31,6 +31,7 @@ data class AvatarData(
|
||||
val size: AvatarSize = AvatarSize.MEDIUM
|
||||
) : Parcelable {
|
||||
|
||||
@IgnoredOnParcel
|
||||
val initial by lazy {
|
||||
(name?.takeIf { it.isNotBlank() } ?: id)
|
||||
.let { dn ->
|
||||
|
||||
@@ -184,13 +184,13 @@ class RustMatrixRoom(
|
||||
}
|
||||
|
||||
override suspend fun acceptInvitation(): Result<Unit> = withContext(coroutineDispatchers.io) {
|
||||
kotlin.runCatching {
|
||||
runCatching {
|
||||
innerRoom.acceptInvitation()
|
||||
}
|
||||
}
|
||||
|
||||
override suspend fun rejectInvitation(): Result<Unit> = withContext(coroutineDispatchers.io) {
|
||||
kotlin.runCatching {
|
||||
runCatching {
|
||||
innerRoom.rejectInvitation()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,4 +33,7 @@ internal class MediaKeyer : Keyer<MediaResolver.Meta> {
|
||||
}
|
||||
}
|
||||
|
||||
private fun MediaResolver.Meta.toKey() = "${url}_${kind}"
|
||||
private fun MediaResolver.Meta.toKey(): String? {
|
||||
if (url.isNullOrBlank()) return null
|
||||
return "${url}_${kind}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user