commit 33383265c813a226d2b2a4049044793358477f31
parent 76d1ee34d82c950460002783aafc8f843a3bc551
Author: William Casarin <jb55@jb55.com>
Date: Thu, 12 Jan 2023 09:37:28 -0800
Fix horrible reactions view bug
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/damus/Models/ReactionsModel.swift b/damus/Models/ReactionsModel.swift
@@ -12,12 +12,15 @@ class ReactionsModel: ObservableObject {
let state: DamusState
let target: String
let sub_id: String
+ let profiles_id: String
+
@Published var reactions: [NostrEvent]
init (state: DamusState, target: String) {
self.state = state
self.target = target
self.sub_id = UUID().description
+ self.profiles_id = UUID().description
self.reactions = []
}
@@ -68,7 +71,7 @@ class ReactionsModel: ObservableObject {
case .notice(_):
break
case .eose(_):
- load_profiles(profiles_subid: UUID().description, relay_id: relay_id, events: reactions, damus_state: state)
+ load_profiles(profiles_subid: profiles_id, relay_id: relay_id, events: reactions, damus_state: state)
break
}
}