From 7a887ccac3acd0f10c1e8559dd3e8f1d0b6e3c42 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:37:27 +0200 Subject: [PATCH] Pass correct argument type 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 2f98e09..8fbc658 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(jid): + if self.auto_heartbeat and self.should_heartbeat(sender): async def send_heartbeat(): msg = await self.make_heartbeat(JID(jid)) msg.send()