diff --git a/apps/ios/Sources/Gateway/GatewayConnectionController.swift b/apps/ios/Sources/Gateway/GatewayConnectionController.swift index b1bbc42e0ee..309c488d632 100644 --- a/apps/ios/Sources/Gateway/GatewayConnectionController.swift +++ b/apps/ios/Sources/Gateway/GatewayConnectionController.swift @@ -241,6 +241,13 @@ final class GatewayConnectionController { bootstrapToken: cfg.bootstrapToken, password: cfg.password, nodeOptions: await self.makeConnectOptions(stableID: cfg.stableID)) + + guard appModel.gatewayAutoReconnectEnabled, + let latestConfig = appModel.activeGatewayConnectConfig, + latestConfig.effectiveStableID == cfg.effectiveStableID, + latestConfig.url == cfg.url + else { return } + appModel.applyGatewayConnectConfig(refreshedConfig) } }