model: upgrade EventsModel to support quote reposts queries
We also switch to using an eventholder because that is a bit nicer when it comes to rendering quotes in timelines. Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -16,7 +16,7 @@ struct ReactionsView: View {
|
||||
var body: some View {
|
||||
ScrollView {
|
||||
LazyVStack {
|
||||
ForEach(model.events, id: \.id) { ev in
|
||||
ForEach(model.events.events, id: \.id) { ev in
|
||||
ReactionView(damus_state: damus_state, reaction: ev)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ struct RepostsView: View {
|
||||
var body: some View {
|
||||
ScrollView {
|
||||
LazyVStack {
|
||||
ForEach(model.events, id: \.id) { ev in
|
||||
ForEach(model.events.events, id: \.id) { ev in
|
||||
RepostView(damus_state: damus_state, repost: ev)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user