mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 05:25:19 +00:00
Fix private message notifications and chat updates
- Remove self-notification when sending private messages - Clear unread indicator when viewing active chat - Properly update UI when private messages are sent/received - Prevent duplicate messages in chat history - Use objectWillChange to force SwiftUI updates
This commit is contained in:
@@ -226,10 +226,7 @@ class BluetoothMeshService: NSObject {
|
||||
print("[DEBUG] Sending private message to \(recipientNickname): \(content)")
|
||||
self.broadcastPacket(packet)
|
||||
|
||||
// Also show the message locally
|
||||
DispatchQueue.main.async {
|
||||
self.delegate?.didReceiveMessage(message)
|
||||
}
|
||||
// Don't call didReceiveMessage here - let the view model handle it directly
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user