mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-26 10:05:19 +00:00
Merge pull request #271 from ryannair05/patch-1
Fix Crash when receiving notification from the background
This commit is contained in:
@@ -3436,7 +3436,9 @@ extension ChatViewModel: BitchatDelegate {
|
|||||||
|
|
||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
// Haptic feedback for iOS only
|
// Haptic feedback for iOS only
|
||||||
|
guard UIApplication.shared.applicationState == .active else {
|
||||||
|
return
|
||||||
|
}
|
||||||
// Check if this is a hug message directed at the user
|
// Check if this is a hug message directed at the user
|
||||||
let isHugForMe = message.content.contains("🫂") &&
|
let isHugForMe = message.content.contains("🫂") &&
|
||||||
(message.content.contains("hugs \(nickname)") ||
|
(message.content.contains("hugs \(nickname)") ||
|
||||||
|
|||||||
Reference in New Issue
Block a user