mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-05-23 08:39:55 +02:00
Deletions!
This commit is contained in:
@@ -60,6 +60,13 @@ class NodeCache {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// Remove a node by ID from the cache (used for successful deletions)
|
||||
void removeNodeById(int nodeId) {
|
||||
if (_nodes.remove(nodeId) != null) {
|
||||
print('[NodeCache] Removed node $nodeId from cache (successful deletion)');
|
||||
}
|
||||
}
|
||||
|
||||
/// Remove temporary nodes (negative IDs) with _pending_upload marker at the given coordinate
|
||||
/// This is used when a real node ID is assigned to clean up temp placeholders
|
||||
|
||||
Reference in New Issue
Block a user