diff --git a/bitchat/BitchatApp.swift b/bitchat/BitchatApp.swift index 2ed9d785..cf403747 100644 --- a/bitchat/BitchatApp.swift +++ b/bitchat/BitchatApp.swift @@ -57,11 +57,9 @@ struct BitchatApp: App { let npub = try? idBridge.getCurrentNostrIdentity()?.npub _ = VerificationService.shared.buildMyQRString(nickname: chatViewModel.nickname, npub: npub) } - #if os(iOS) + appDelegate.chatViewModel = chatViewModel - #elseif os(macOS) - appDelegate.chatViewModel = chatViewModel - #endif + // Initialize network activation policy; will start Tor/Nostr only when allowed NetworkActivationService.shared.start() // Check for shared content