summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjack <jackjackbits@users.noreply.github.com>2025-08-12 09:43:06 +0200
committerjack <jackjackbits@users.noreply.github.com>2025-08-12 09:43:06 +0200
commita36eda3fbe56e91c39af33cbba55d2113ad0930d (patch)
tree57d1ecb2e0e86a4303a845742014caaefb32143d
parent99c0f6523e271a2735a85686bb0284a26d57260d (diff)
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
-rw-r--r--bitchat/Services/BluetoothMeshService.swift1
-rw-r--r--bitchat/ViewModels/ChatViewModel.swift3
2 files changed, 1 insertions, 3 deletions
diff --git a/bitchat/Services/BluetoothMeshService.swift b/bitchat/Services/BluetoothMeshService.swift
index 4a438df..3ae0f6f 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 eb6d812..6298db8 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 }