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>
This commit is contained in:
Maxime “pep” Buquet 2021-12-31 01:51:29 +01:00
parent 33555db0c1
commit 72ec3cd73b

View file

@ -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)