Fix compilation
This commit is contained in:
@@ -40,6 +40,7 @@ data class TimelineItemLocationContent(
|
||||
when (assetType) {
|
||||
AssetType.PIN -> PinVariant.PinnedLocation
|
||||
AssetType.SENDER,
|
||||
AssetType.UNKNOWN,
|
||||
null -> PinVariant.UserLocation(avatarData = senderAvatar(), isLive = false)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,5 +10,6 @@ package io.element.android.libraries.matrix.api.room.location
|
||||
|
||||
enum class AssetType {
|
||||
SENDER,
|
||||
PIN
|
||||
PIN,
|
||||
UNKNOWN
|
||||
}
|
||||
|
||||
@@ -14,9 +14,11 @@ import org.matrix.rustcomponents.sdk.AssetType as RustAssetType
|
||||
fun AssetType.into(): RustAssetType = when (this) {
|
||||
AssetType.SENDER -> RustAssetType.SENDER
|
||||
AssetType.PIN -> RustAssetType.PIN
|
||||
AssetType.UNKNOWN -> RustAssetType.UNKNOWN
|
||||
}
|
||||
|
||||
fun RustAssetType.into(): AssetType = when(this){
|
||||
RustAssetType.SENDER -> AssetType.SENDER
|
||||
RustAssetType.PIN -> AssetType.PIN
|
||||
RustAssetType.UNKNOWN -> AssetType.UNKNOWN
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user