commit c2325a5e390a001f4433072070b297531346a6f8
parent 3eb544e40d0b1da5054fecd5deabf59f56239aba
Author: William Casarin <jb55@jb55.com>
Date: Fri, 28 Apr 2023 13:03:26 -0700
always process events
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/damus/Models/HomeModel.swift b/damus/Models/HomeModel.swift
@@ -305,11 +305,13 @@ class HomeModel: ObservableObject {
switch ev {
case .event(let sub_id, let ev):
// globally handle likes
+ /*
let always_process = sub_id == notifications_subid || sub_id == contacts_subid || sub_id == home_subid || sub_id == dms_subid || sub_id == init_subid || ev.known_kind == .like || ev.known_kind == .boost || ev.known_kind == .zap || ev.known_kind == .contacts || ev.known_kind == .metadata
if !always_process {
// TODO: other views like threads might have their own sub ids, so ignore those events... or should we?
return
}
+ */
self.process_event(sub_id: sub_id, relay_id: relay_id, ev: ev)
case .notice(let msg):