From e4c9b54b85548a8417cbb73ce071d5d91856abf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 12 Mar 2022 01:27:15 +0100 Subject: [PATCH] Ensure heartbeats are stored in the archive MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- slixmpp_omemo/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/slixmpp_omemo/__init__.py b/slixmpp_omemo/__init__.py index c254dce..b16d1ff 100644 --- a/slixmpp_omemo/__init__.py +++ b/slixmpp_omemo/__init__.py @@ -197,7 +197,7 @@ class XEP_0384(BasePlugin): name = 'xep_0384' 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 = { 'data_dir': None, 'storage_backend': None, @@ -609,6 +609,7 @@ class XEP_0384(BasePlugin): _device_id=device_id, ) msg.append(encrypted) + msg.enable('store') return msg async def trust(self, jid: JID, device_id: int, ik: bytes) -> None: