Ensure stats get updated in realtime on action bars

Changelog-Fixed: Ensure stats get updated in realtime on action bars
This commit is contained in:
William Casarin committed 2023-02-14 10:05:59 -08:00
1 parent 6d634763c5
commit 59211bb4fd
5 files changed
+13 -21

No files matched your search

+2
View File
@@ -230,6 +230,7 @@ class HomeModel: ObservableObject {
case .success(let n):
let boosted = Counted(event: ev, id: e, total: n)
notify(.boosted, boosted)
notify(.update_stats, e)
}
}
@@ -247,6 +248,7 @@ class HomeModel: ObservableObject {
case .success(let n):
let liked = Counted(event: ev, id: e.ref_id, total: n)
notify(.liked, liked)
notify(.update_stats, e.ref_id)
}
}