Fix runtime crashes and reduce excessive logging

- Fix Dictionary crash in ChatViewModel by adding deduplication logic for peer IDs
- Fix compilation errors: PeerData -> BitchatPeer type correction
- Fix Task async context issue with cancellables
- Remove excessive debug logging for handshake coordination
- Remove repetitive keep-alive timer logs
- Remove version cache logging spam
This commit is contained in:
jack
2025-08-01 21:39:09 +02:00
parent 172b06721b
commit 8ec39f566d
3 changed files with 6 additions and 20 deletions
@@ -85,8 +85,6 @@ class NoiseHandshakeCoordinator {
// Check role
let role = determineHandshakeRole(myPeerID: myPeerID, remotePeerID: remotePeerID)
if role != .initiator {
SecureLogger.log("Not initiator for handshake with \(remotePeerID) (my: \(myPeerID), their: \(remotePeerID))",
category: SecureLogger.handshake, level: .debug)
return false
}