Add NodeDB::isFavorite, NodeDB::isFromOrToFavoritedNode

This commit is contained in:
Mike Robbins
2025-09-05 14:25:09 -07:00
parent 3cc2b70e4f
commit 484b4cd848
2 changed files with 24 additions and 0 deletions

View File

@@ -185,6 +185,16 @@ class NodeDB
*/
void set_favorite(bool is_favorite, uint32_t nodeId);
/*
* Returns true if the node is in the NodeDB and marked as favorite
*/
bool isFavorite(uint32_t nodeId);
/*
* Returns true if p->from or p->to is a favorited node
*/
bool isFromOrToFavoritedNode(const meshtastic_MeshPacket &p);
/**
* Other functions like the node picker can request a pause in the node sorting
*/