Ensure heartbeats are stored in the archive

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-03-12 01:27:15 +01:00
parent 320105988a
commit e4c9b54b85
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -197,7 +197,7 @@ class XEP_0384(BasePlugin):
name = 'xep_0384' name = 'xep_0384'
description = 'XEP-0384 OMEMO' description = 'XEP-0384 OMEMO'
dependencies = {'xep_0004', 'xep_0030', 'xep_0060', 'xep_0163'} dependencies = {'xep_0004', 'xep_0030', 'xep_0060', 'xep_0163', 'xep_0334'}
default_config = { default_config = {
'data_dir': None, 'data_dir': None,
'storage_backend': None, 'storage_backend': None,
@ -609,6 +609,7 @@ class XEP_0384(BasePlugin):
_device_id=device_id, _device_id=device_id,
) )
msg.append(encrypted) msg.append(encrypted)
msg.enable('store')
return msg return msg
async def trust(self, jid: JID, device_id: int, ik: bytes) -> None: async def trust(self, jid: JID, device_id: int, ik: bytes) -> None: