mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Delete user and node when sending a nodedb remove
This commit is contained in:
parent
4d61d5d18d
commit
0807fbfcaa
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue