Making Channel metadata view model stable for performance

This commit is contained in:
Vitor Pamplona
2025-11-10 11:17:22 -05:00
parent 011aebfc27
commit 58128d9ad0
@@ -21,6 +21,7 @@
package com.vitorpamplona.amethyst.ui.screen.loggedIn.chats.publicChannels.nip28PublicChat.metadata
import android.content.Context
import androidx.compose.runtime.Stable
import androidx.compose.runtime.derivedStateOf
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
@@ -54,6 +55,7 @@ import kotlinx.coroutines.flow.update
import kotlinx.coroutines.launch
import kotlin.coroutines.cancellation.CancellationException
@Stable
class ChannelMetadataViewModel : ViewModel() {
private var account: Account? = null
private var originalChannel: PublicChatChannel? = null