From 59543ac585920f25bb82a166ca7190a979699750 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Fri, 16 Jul 2021 21:31:57 +0200 Subject: [PATCH] Add missing argument to should_heartbeat call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- slixmpp_omemo/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slixmpp_omemo/__init__.py b/slixmpp_omemo/__init__.py index 993be34..2f98e09 100644 --- a/slixmpp_omemo/__init__.py +++ b/slixmpp_omemo/__init__.py @@ -654,7 +654,7 @@ class XEP_0384(BasePlugin): finally: asyncio.ensure_future(self._publish_bundle()) - if self.auto_heartbeat and self.should_heartbeat(): + if self.auto_heartbeat and self.should_heartbeat(jid): async def send_heartbeat(): msg = await self.make_heartbeat(JID(jid)) msg.send()