mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-26 02:45:19 +00:00
Fix BLE advertisement warnings and duplicate registrations
- Remove 'Is Connectable' and 'Manufacturer Data' keys from BLE ads - Only use allowed keys: service UUIDs and local name - Prevent duplicate fingerprint registrations in favorites - Comment out unused fragment type string variable The warnings about advertisement keys should no longer appear.
This commit is contained in:
@@ -110,8 +110,13 @@ class ChatViewModel: ObservableObject {
|
||||
.prefix(16) // Use first 16 chars for brevity
|
||||
.lowercased()
|
||||
|
||||
peerIDToPublicKeyFingerprint[peerID] = String(fingerprint)
|
||||
print("[FAVORITES] Registered fingerprint \(fingerprint) for peer \(peerID)")
|
||||
let fingerprintStr = String(fingerprint)
|
||||
|
||||
// Only register if not already registered
|
||||
if peerIDToPublicKeyFingerprint[peerID] != fingerprintStr {
|
||||
peerIDToPublicKeyFingerprint[peerID] = fingerprintStr
|
||||
print("[FAVORITES] Registered fingerprint \(fingerprint) for peer \(peerID)")
|
||||
}
|
||||
}
|
||||
|
||||
func sendMessage(_ content: String) {
|
||||
|
||||
Reference in New Issue
Block a user