Delete user and node when sending a nodedb remove

This commit is contained in:
Garth Vander Houwen 2023-12-21 18:00:52 -08:00
parent 4d61d5d18d
commit 0807fbfcaa

View file

@ -1311,6 +1311,7 @@ class BLEManager: NSObject, CBPeripheralDelegate, MqttClientProxyManagerDelegate
if connectedPeripheral?.peripheral.state ?? CBPeripheralState.disconnected == CBPeripheralState.connected{
do {
connectedPeripheral.peripheral.writeValue(binaryData, for: TORADIO_characteristic, type: .withResponse)
context!.delete(node.user!)
context!.delete(node)
try context!.save()
return true