mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-26 12:26:38 -06:00
000db97c82
* feat(talk): add macOS realtime relay transport Co-authored-by: Zhilong Zheng <zhengzhilong1115@gmail.com> * feat(talk): integrate realtime relay with macOS Talk Co-authored-by: Zhilong Zheng <zhengzhilong1115@gmail.com> * fix(talk): keep realtime bootstrap config redacted Co-authored-by: Zhilong Zheng <zhengzhilong1115@gmail.com> * fix(talk): surface failed native fallback Co-authored-by: Zhilong Zheng <zhengzhilong1115@gmail.com> * test(talk): inject deterministic relay capture Co-authored-by: Zhilong Zheng <zhengzhilong1115@gmail.com> --------- Co-authored-by: Zhilong Zheng <zhengzhilong1115@gmail.com>
11 lines
438 B
Swift
11 lines
438 B
Swift
import Foundation
|
|
|
|
extension AppState {
|
|
func persistTalkRealtimeRelayPreference(previousValue: Bool) {
|
|
guard !self.isPreview else { return }
|
|
AppDefaults.standard.set(self.talkRealtimeRelayEnabled, forKey: talkRealtimeRelayEnabledKey)
|
|
guard self.talkEnabled, self.talkRealtimeRelayEnabled != previousValue else { return }
|
|
Task { await TalkModeRuntime.shared.realtimeRelayPreferenceDidChange() }
|
|
}
|
|
}
|