From a7e969b07857f32ec7294560058e6c827268c7e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Wed, 2 Mar 2022 00:32:47 +0100 Subject: [PATCH] should_heartbeat: Ensure prekey variable is always availabe in scope 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/slixmpp_omemo/__init__.py b/slixmpp_omemo/__init__.py index b3fb4f4..1e0f314 100644 --- a/slixmpp_omemo/__init__.py +++ b/slixmpp_omemo/__init__.py @@ -593,6 +593,7 @@ class XEP_0384(BasePlugin): OMEMO_BASE_NS, self._device_id)) # Don't error out. If it's not encrypted to us we don't need to send a # heartbeat. + prekey = False if key is not None: key = Key(key) prekey = key['prekey'] in TRUE_VALUES