commit 6d634763c555b76f153a5a643bafe3d0fb28de59 parent 49cf56f4c2f347dc35c5e3c5047a99f6b0be981c Author: William Casarin <jb55@jb55.com> Date: Tue, 14 Feb 2023 10:05:19 -0800 Fix repost counters Changelog-Fixed: Fix reposts not getting counted properly Diffstat:
M | damus/Models/HomeModel.swift | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/damus/Models/HomeModel.swift b/damus/Models/HomeModel.swift @@ -287,7 +287,7 @@ 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 == .zap || ev.known_kind == .contacts || ev.known_kind == .metadata + 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