Commit 217185d0 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[omemo] Correctly handle presence without real jid

parent ed8ad89f
...@@ -297,12 +297,11 @@ class OMEMO(BaseModule): ...@@ -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)
......
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