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:
1 parent
1339ec3ded
commit
3f1f257df2
3 files changed
+45
-18
No files matched your search
@@ -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