Code cleanup

This commit is contained in:
ganfra
2026-03-12 12:35:46 +01:00
parent 8274ef220d
commit fb775833c7
28 changed files with 44 additions and 113 deletions

View File

@@ -17,12 +17,10 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Shape
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.unit.Dp
import coil3.compose.AsyncImagePainter
import coil3.compose.SubcomposeAsyncImage
import coil3.compose.SubcomposeAsyncImageContent
import coil3.request.ImageRequest
import io.element.android.libraries.designsystem.components.avatar.AvatarData
import timber.log.Timber

View File

@@ -9,7 +9,6 @@
package io.element.android.libraries.designsystem.components.dialogs
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Arrangement.HorizontalOrVertical
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.LazyListScope

View File

@@ -12,4 +12,3 @@ data class LiveLocationInfo(
val geoUri: String,
val timestamp: Long,
)

View File

@@ -111,7 +111,7 @@ data class LiveLocationContent(
val timeout: Long,
val assetType: AssetType?,
val locations: List<LiveLocationInfo>,
): EventContent
) : EventContent
data object LegacyCallInviteContent : EventContent

View File

@@ -17,7 +17,7 @@ fun AssetType.into(): RustAssetType = when (this) {
AssetType.UNKNOWN -> RustAssetType.UNKNOWN
}
fun RustAssetType.into(): AssetType = when(this){
fun RustAssetType.into(): AssetType = when (this) {
RustAssetType.SENDER -> AssetType.SENDER
RustAssetType.PIN -> AssetType.PIN
RustAssetType.UNKNOWN -> AssetType.UNKNOWN

View File

@@ -11,7 +11,6 @@ package io.element.android.libraries.matrix.ui.components
import android.os.Parcelable
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.MaterialTheme