Visible must be annotated with Immutable
This commit is contained in:
parent
55e16fae63
commit
0029d13417
1 changed files with 1 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ import io.element.android.libraries.ui.strings.CommonStrings
|
|||
@Immutable
|
||||
sealed interface PinnedMessagesBannerState {
|
||||
data object Hidden : PinnedMessagesBannerState
|
||||
@Immutable
|
||||
sealed interface Visible : PinnedMessagesBannerState {
|
||||
fun pinnedMessagesCount() = when (this) {
|
||||
is Loading -> expectedPinnedMessagesCount
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue