mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
adding an optional parameter to ensure_contact
This commit is contained in:
parent
d7de28d7f9
commit
f4a4c5cfd0
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue