Pass correct argument type 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:37:27 +02:00
parent 59543ac585
commit 7a887ccac3

View file

@ -654,7 +654,7 @@ class XEP_0384(BasePlugin):
finally: finally:
asyncio.ensure_future(self._publish_bundle()) 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(): async def send_heartbeat():
msg = await self.make_heartbeat(JID(jid)) msg = await self.make_heartbeat(JID(jid))
msg.send() msg.send()