Skip to content

Commit faadc5f

Browse files
authored
Merge pull request #957 from nightscout/fix-watch-carbs-health-tidepool
Fix Watch Carb Entry Propagation to Apple Health and Tidepool
2 parents 31cf3da + 13a3883 commit faadc5f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Trio/Sources/Services/WatchManager/AppleWatchManager.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,8 @@ final class BaseWatchManager: NSObject, WCSessionDelegate, Injectable, WatchMana
740740
carbEntry.note = String(localized: "Via Watch", comment: "Note added to carb entry when entered via watch")
741741
carbEntry.isFPU = false // set this to false to ensure watch-entered carbs are displayed in main chart
742742
carbEntry.isUploadedToNS = false
743+
carbEntry.isUploadedToHealth = false
744+
carbEntry.isUploadedToTidepool = false
743745

744746
do {
745747
guard context.hasChanges else {
@@ -802,6 +804,8 @@ final class BaseWatchManager: NSObject, WCSessionDelegate, Injectable, WatchMana
802804
carbEntry.note = String(localized: "Via Watch", comment: "Note added to carb entry when entered via watch")
803805
carbEntry.isFPU = false // set this to false to ensure watch-entered carbs are displayed in main chart
804806
carbEntry.isUploadedToNS = false
807+
carbEntry.isUploadedToHealth = false
808+
carbEntry.isUploadedToTidepool = false
805809

806810
guard context.hasChanges else {
807811
// Acknowledge failure

0 commit comments

Comments
 (0)