Make some data class @Immutable when needed

This commit is contained in:
ganfra
2023-01-11 17:08:56 +01:00
parent 1a0c9df1da
commit f470f2a6af
5 changed files with 8 additions and 37 deletions

View File

@@ -16,9 +16,9 @@
package io.element.android.x.designsystem.components.avatar
import androidx.compose.runtime.Stable
import androidx.compose.runtime.Immutable
@Stable
@Immutable
data class AvatarData(
val name: String = "",
val model: ByteArray? = null,

View File

@@ -16,11 +16,12 @@
package io.element.android.x.matrix.ui.model
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.Stable
import io.element.android.x.designsystem.components.avatar.AvatarData
import io.element.android.x.matrix.core.UserId
@Stable
@Immutable
data class MatrixUser(
val id: UserId,
val username: String? = null,