Fix reactions view to not show reactions from replies on parent note

Changelog-Fixed: Fix reactions view to not show reactions from replies on parent note
This commit is contained in:
2024-07-06 19:07:28 -04:00
parent fd130b78e7
commit 847f31f5a6

View File

@@ -16,7 +16,7 @@ struct ReactionsView: View {
var body: some View {
ScrollView {
LazyVStack {
ForEach(model.events.events, id: \.id) { ev in
ForEach(model.events.events.filter { $0.last_refid() == model.target }, id: \.id) { ev in
ReactionView(damus_state: damus_state, reaction: ev)
}
}