mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-26 17:52:29 +01:00
Reverting to a Class for the Notification View Model
This commit is contained in:
parent
a2f14c3671
commit
987925d837
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user