Commit c94236b2 authored by mathieui's avatar mathieui

Fix nick changes

Due to change again once slixmpp gets a proper API for this
parent c9fe8f07
Pipeline #3542 passed with stages
in 5 minutes and 16 seconds
......@@ -736,7 +736,9 @@ class MucTab(ChatTab):
self.core.on_user_rejoined_private_conversation(self.jid.bare, from_nick)
def on_user_nick_change(self, presence: Presence, user: User, from_nick: str) -> None:
new_nick = presence['muc']['nick']
new_nick = presence.xml.find(
'{%s}x/{%s}item' % (NS_MUC_USER, NS_MUC_USER)
).attrib['nick']
old_color = user.color
if user.nick == self.own_nick:
self.own_nick = new_nick
......
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