mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-07-01 08:10:41 +02:00
Removes Raw ZapNotes from Notifications
This commit is contained in:
@ -95,7 +95,7 @@ class CardFeedViewModel(val dataSource: NostrDataSource<Note>): ViewModel() {
|
|||||||
|
|
||||||
val boostCards = boostsPerEvent.map { BoostSetCard(it.key, it.value) }
|
val boostCards = boostsPerEvent.map { BoostSetCard(it.key, it.value) }
|
||||||
|
|
||||||
val textNoteCards = notes.filter { it.event !is ReactionEvent && it.event !is RepostEvent }.map { NoteCard(it) }
|
val textNoteCards = notes.filter { it.event !is ReactionEvent && it.event !is RepostEvent && it.event !is LnZapEvent }.map { NoteCard(it) }
|
||||||
|
|
||||||
return (reactionCards + boostCards + zapCards + textNoteCards).sortedBy { it.createdAt() }.reversed()
|
return (reactionCards + boostCards + zapCards + textNoteCards).sortedBy { it.createdAt() }.reversed()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user