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()