From f4a4c5cfd075b2f55684c34cc7c7775aafc8d067 Mon Sep 17 00:00:00 2001 From: Florent Date: Fri, 11 Jul 2025 12:18:54 +0200 Subject: [PATCH] adding an optional parameter to ensure_contact --- src/meshcore/meshcore.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/meshcore/meshcore.py b/src/meshcore/meshcore.py index 1178ea3..53c64ae 100644 --- a/src/meshcore/meshcore.py +++ b/src/meshcore/meshcore.py @@ -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