diff --git a/bitchat/ViewModels/ChatViewModel.swift b/bitchat/ViewModels/ChatViewModel.swift index 6b27676f..20f360fb 100644 --- a/bitchat/ViewModels/ChatViewModel.swift +++ b/bitchat/ViewModels/ChatViewModel.swift @@ -3436,7 +3436,9 @@ extension ChatViewModel: BitchatDelegate { #if os(iOS) // Haptic feedback for iOS only - + guard UIApplication.shared.applicationState == .active else { + return + } // Check if this is a hug message directed at the user let isHugForMe = message.content.contains("🫂") && (message.content.contains("hugs \(nickname)") ||