diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2021-12-31 01:51:29 +0100 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2022-03-01 20:44:07 +0100 |
commit | 72ec3cd73bf884ce54603f9bf2a030285984ad4f (patch) | |
tree | 350b0d8d3543c6772f35117a2e7320dd2f18db02 | |
parent | 33555db0c104285aa3720ed1ab42efad81b9bfa5 (diff) | |
download | poezio-72ec3cd73bf884ce54603f9bf2a030285984ad4f.tar.gz poezio-72ec3cd73bf884ce54603f9bf2a030285984ad4f.tar.bz2 poezio-72ec3cd73bf884ce54603f9bf2a030285984ad4f.tar.xz poezio-72ec3cd73bf884ce54603f9bf2a030285984ad4f.zip |
plugin_e2ee: don't fail on tab.jid if tab is None
I doubt this is the proper fix, there are still paths that use tab below
that.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r-- | poezio/plugin_e2ee.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/plugin_e2ee.py b/poezio/plugin_e2ee.py index 1b393841..0de203cc 100644 --- a/poezio/plugin_e2ee.py +++ b/poezio/plugin_e2ee.py @@ -478,7 +478,7 @@ class E2EEPlugin(BasePlugin): if user.jid.bare: jids.append(user.jid) - if not self._encryption_enabled(tab.jid): + if tab and not self._encryption_enabled(tab.jid): raise NothingToEncrypt() log.debug('Sending %s message', self.encryption_name) |