diff --git a/bitchat/Services/BluetoothMeshService.swift b/bitchat/Services/BluetoothMeshService.swift index 4a438dfa..3ae0f6f6 100644 --- a/bitchat/Services/BluetoothMeshService.swift +++ b/bitchat/Services/BluetoothMeshService.swift @@ -5275,7 +5275,6 @@ extension BluetoothMeshService: CBCentralManagerDelegate { // Time tracking removed - now in PeerSession // Time tracking removed - now in PeerSession // Keep lastSuccessfulMessageTime to validate session on reconnect - let lastSuccess = self.peerSessions[peerID]?.lastSuccessfulMessageTime ?? Date.distantPast // Keeping Noise session on disconnect } diff --git a/bitchat/ViewModels/ChatViewModel.swift b/bitchat/ViewModels/ChatViewModel.swift index eb6d812d..6298db83 100644 --- a/bitchat/ViewModels/ChatViewModel.swift +++ b/bitchat/ViewModels/ChatViewModel.swift @@ -1011,8 +1011,7 @@ class ChatViewModel: ObservableObject, BitchatDelegate { } @objc private func handleDeliveryAcknowledgment(_ notification: Notification) { - guard let messageId = notification.userInfo?["messageId"] as? String, - let senderNoiseKey = notification.userInfo?["senderNoiseKey"] as? Data else { return } + guard let messageId = notification.userInfo?["messageId"] as? String else { return }