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 8dc4eabdad
commit 3b81e36242

View file

@ -479,7 +479,7 @@ class E2EEPlugin(BasePlugin):
if user.jid.bare: if user.jid.bare:
jids.append(user.jid) jids.append(user.jid)
if not self._encryption_enabled(tab.jid): if tab and not self._encryption_enabled(tab.jid):
raise NothingToEncrypt() raise NothingToEncrypt()
log.debug('Sending %s message', self.encryption_name) log.debug('Sending %s message', self.encryption_name)