mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-06-11 11:56:18 +00:00
adding an optional parameter to ensure_contact
This commit is contained in:
@@ -344,9 +344,9 @@ class MeshCore:
|
||||
pass
|
||||
self._auto_fetch_task = None
|
||||
|
||||
async def ensure_contacts(self):
|
||||
async def ensure_contacts(self, follow=False):
|
||||
"""Ensure contacts are fetched"""
|
||||
if not self._contacts or not self._contacts_ok :
|
||||
if not self._contacts or (follow and not self._contacts_ok) :
|
||||
await self.commands.get_contacts()
|
||||
return True
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user