1
0
mirror of git://jb55.com/damus synced 2024-09-30 08:50:42 +00:00

always process events

This commit is contained in:
William Casarin 2023-04-28 13:03:26 -07:00
parent 3eb544e40d
commit c2325a5e39

View File

@ -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):