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