Merge pull request #271 from ryannair05/patch-1

Fix Crash when receiving notification from the background
This commit is contained in:
jack
2025-07-22 11:46:34 +02:00
committed by GitHub
+3 -1
View File
@@ -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)") ||