mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-24 23:45:18 +00:00
update UI on new data
This commit is contained in:
@@ -83,6 +83,9 @@ public final class GeohashParticipantTracker: ObservableObject {
|
|||||||
var map = participants[geohash] ?? [:]
|
var map = participants[geohash] ?? [:]
|
||||||
map[key] = Date()
|
map[key] = Date()
|
||||||
participants[geohash] = map
|
participants[geohash] = map
|
||||||
|
|
||||||
|
// Always notify observers that state has changed so counts in UI update
|
||||||
|
objectWillChange.send()
|
||||||
|
|
||||||
// Only refresh visible list if this geohash is currently active
|
// Only refresh visible list if this geohash is currently active
|
||||||
if activeGeohash == geohash {
|
if activeGeohash == geohash {
|
||||||
|
|||||||
Reference in New Issue
Block a user