decrypt_message: don't always send heartbeat

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2021-07-13 23:15:02 +02:00
parent 89eb4dfece
commit 95481e64b2

View file

@ -643,7 +643,7 @@ class XEP_0384(BasePlugin):
finally:
asyncio.ensure_future(self._publish_bundle())
if self.auto_heartbeat:
if self.auto_heartbeat and self.should_heartbeat():
msg = self.make_heartbeat(jid)
msg.send()