ソースを参照

RemoteSettings: exclude Loop APNS from Team ID mismatch check

Jonas Björkert 9 ヶ月 前
コミット
de106ffff6
1 ファイル変更2 行追加2 行削除
  1. 2 2
      LoopFollow/Remote/Settings/RemoteSettingsViewModel.swift

+ 2 - 2
LoopFollow/Remote/Settings/RemoteSettingsViewModel.swift

@@ -62,7 +62,7 @@ class RemoteSettingsViewModel: ObservableObject {
 
         // Determine if a comparison is needed and perform it.
         switch remoteType {
-        case .loopAPNS, .trc:
+        case .trc:
             // For both Loop and TRC, the target Team ID is in the same storage location.
             // If the target ID is empty, there's nothing to compare.
             guard !targetTeamId.isEmpty else {
@@ -71,7 +71,7 @@ class RemoteSettingsViewModel: ObservableObject {
             // Return true if the IDs are different.
             return loopFollowTeamID != targetTeamId
 
-        case .none, .nightscout:
+        case .loopAPNS, .none, .nightscout:
             // For other remote types, this check is not applicable.
             return false
         }