Commit 7f73a664 authored by Maxime Buquet's avatar Maxime Buquet
Browse files

plugin_e2ee: prevent empty JID from being passed to plugin

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <>
parent 30a7ac05
......@@ -428,7 +428,10 @@ class E2EEPlugin(BasePlugin):
# If we encrypt to all of these JIDs is up to the plugin, we
# just tell it who is in the room.
# XXX: user.jid shouldn't be empty. That's a MucTab/slixmpp
# bug.
if user.jid.bare:
if not self._encryption_enabled(tab.jid):
raise NothingToEncrypt()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment