Make some data class @Immutable when needed
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user