[omemo] Fix error in non-anonymous MUCs
This commit is contained in:
@@ -408,11 +408,12 @@ class OMEMO:
|
|||||||
nick = properties.muc_nickname
|
nick = properties.muc_nickname
|
||||||
status_codes = properties.muc_status_codes or []
|
status_codes = properties.muc_status_codes or []
|
||||||
|
|
||||||
muc_user = properties.muc_user
|
jid = properties.muc_user.jid
|
||||||
if muc_user is None:
|
if jid is None:
|
||||||
|
# No real jid found
|
||||||
return
|
return
|
||||||
|
|
||||||
jid = properties.muc_user.jid.getBare()
|
jid = jid.getBare()
|
||||||
|
|
||||||
if properties.is_nickname_changed:
|
if properties.is_nickname_changed:
|
||||||
new_nick = properties.muc_user.nick
|
new_nick = properties.muc_user.nick
|
||||||
|
|||||||
Reference in New Issue
Block a user