Code cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -12,4 +12,3 @@ data class LiveLocationInfo(
|
||||
val geoUri: String,
|
||||
val timestamp: Long,
|
||||
)
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ data class LiveLocationContent(
|
||||
val timeout: Long,
|
||||
val assetType: AssetType?,
|
||||
val locations: List<LiveLocationInfo>,
|
||||
): EventContent
|
||||
) : EventContent
|
||||
|
||||
data object LegacyCallInviteContent : EventContent
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user