[omemo] Correctly handle presence without real jid
This commit is contained in:
1 parent
ed8ad89f1b
commit
217185d074
1 file changed
+2
-3
@@ -297,12 +297,11 @@ class OMEMO(BaseModule):
|
||||
|
||||
room = properties.jid.getBare()
|
||||
|
||||
jid = properties.muc_user.jid
|
||||
if jid is None:
|
||||
if properties.muc_user is None or properties.muc_user.jid is None:
|
||||
# No real jid found
|
||||
return
|
||||
|
||||
jid = jid.getBare()
|
||||
jid = properties.muc_user.jid.getBare()
|
||||
if properties.muc_user.affiliation in (Affiliation.OUTCAST,
|
||||
Affiliation.NONE):
|
||||
self.backend.remove_muc_member(room, jid)
|
||||
|
||||
Reference in new issue
Block a user