Removes Raw ZapNotes from Notifications

This commit is contained in:
Vitor Pamplona
2023-02-12 21:43:19 -05:00
parent 64f2575228
commit 04d94b4dbf

View File

@ -95,7 +95,7 @@ class CardFeedViewModel(val dataSource: NostrDataSource<Note>): ViewModel() {
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()
}