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):
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
jid = jid.getBare()
jid = properties.muc_user.jid.getBare()
if properties.muc_user.affiliation in (Affiliation.OUTCAST,
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