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:
parent
33555db0c1
commit
72ec3cd73b
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue