Skip to content

Commit 19055b2

Browse files
committed
Fixed updating badge count in yet to sync elements on synced
1 parent 32a2e23 commit 19055b2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

GoInfoGame/GoInfoGame/UI/Map/CustomMap.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ struct CustomMap: UIViewRepresentable {
159159
func reloadMap() async {
160160
guard let mapView = mapView else { return }
161161
async let changes = clusterManager.reload(mapViewSize: mapView.bounds.size, coordinateRegion: mapView.region)
162+
debugPrint("Annotation Changes: insertions: \(await changes.insertions.count) removals:\(await changes.removals.count)")
162163
await applyChanges(changes)
163164
}
164165

GoInfoGame/GoInfoGame/UI/Map/MapView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,10 @@ struct MapView: View {
435435
case .synced:
436436
isSyncing = false
437437
print("synced")
438+
viewModel.checkSyncStatus()
438439
case .failed(let message):
439440
isSyncing = false
441+
shouldShowPolyline = false
440442
viewModel.checkSyncStatus()
441443
case .hideElement(let elementId, let elementName):
442444
shouldShowPolyline = false

0 commit comments

Comments
 (0)