From d3c3affc1bab6338da7b969938f38722ed211536 Mon Sep 17 00:00:00 2001 From: saravanakumardb1 Date: Fri, 20 Mar 2026 23:09:36 -0700 Subject: [PATCH] =?UTF-8?q?fix(ios):=20Fix=20KillSwitchService=20=E2=80=94?= =?UTF-8?q?=20BLKillSwitchClient.check()=20returns=20Void?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Swift BLKillSwitchClient.check() sets isDisabled/maintenanceMessage as properties on the client, not a returned result. Expose isDisabled and maintenanceMessage as computed properties on the wrapper. --- ios/ChronoMind/Shared/Cloud/KillSwitchService.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ios/ChronoMind/Shared/Cloud/KillSwitchService.swift b/ios/ChronoMind/Shared/Cloud/KillSwitchService.swift index 731e114..978151a 100644 --- a/ios/ChronoMind/Shared/Cloud/KillSwitchService.swift +++ b/ios/ChronoMind/Shared/Cloud/KillSwitchService.swift @@ -6,7 +6,10 @@ import ByteLystPlatformSDK enum KillSwitchService { private static let client = BLKillSwitchClient(config: ChronoMindConfig.platform) - static func check() async -> BLKillSwitchResult { + static var isDisabled: Bool { client.isDisabled } + static var maintenanceMessage: String { client.maintenanceMessage } + + static func check() async { await client.check() } }