Reverting to a Class for the Notification View Model

This commit is contained in:
Vitor Pamplona 2023-02-21 17:03:26 -05:00
parent a2f14c3671
commit 987925d837

View File

@ -24,7 +24,7 @@ import kotlinx.coroutines.flow.update
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
object NotificationViewModel: CardFeedViewModel(NotificationFeedFilter)
class NotificationViewModel: CardFeedViewModel(NotificationFeedFilter)
open class CardFeedViewModel(val dataSource: FeedFilter<Note>): ViewModel() {
private val _feedContent = MutableStateFlow<CardFeedState>(CardFeedState.Loading)