WIP: Enhancements to persistence

This commit is contained in:
Chad Attermann committed 2024-06-03 08:13:45 -06:00
1 parent 63a16a5391
commit f415b5e0b5
14 files changed
+693 -288

No files matched your search

+10
View File
@@ -439,6 +439,16 @@ Recall last heard app_data for a destination hash.
return false;
}
/*static*/ void Identity::persist_data() {
if (!Transport::reticulum() || !Transport::reticulum().is_connected_to_shared_instance()) {
save_known_destinations();
}
}
/*static*/ void Identity::exit_handler() {
persist_data();
}
/*
Encrypts information for the identity.