Add missing argument to should_heartbeat call

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2021-07-16 21:31:57 +02:00
parent a8ce75551a
commit 59543ac585
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

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