mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 12:45:20 +00:00
fix: remove remaining unused variables to eliminate compiler warnings
- Remove unused senderNoiseKey in ChatViewModel - Remove unused lastSuccess variable in BluetoothMeshService - Eliminates all compiler warnings related to unused values
This commit is contained in:
@@ -5275,7 +5275,6 @@ extension BluetoothMeshService: CBCentralManagerDelegate {
|
|||||||
// Time tracking removed - now in PeerSession
|
// Time tracking removed - now in PeerSession
|
||||||
// Time tracking removed - now in PeerSession
|
// Time tracking removed - now in PeerSession
|
||||||
// Keep lastSuccessfulMessageTime to validate session on reconnect
|
// Keep lastSuccessfulMessageTime to validate session on reconnect
|
||||||
let lastSuccess = self.peerSessions[peerID]?.lastSuccessfulMessageTime ?? Date.distantPast
|
|
||||||
// Keeping Noise session on disconnect
|
// Keeping Noise session on disconnect
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1011,8 +1011,7 @@ class ChatViewModel: ObservableObject, BitchatDelegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@objc private func handleDeliveryAcknowledgment(_ notification: Notification) {
|
@objc private func handleDeliveryAcknowledgment(_ notification: Notification) {
|
||||||
guard let messageId = notification.userInfo?["messageId"] as? String,
|
guard let messageId = notification.userInfo?["messageId"] as? String else { return }
|
||||||
let senderNoiseKey = notification.userInfo?["senderNoiseKey"] as? Data else { return }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user