Commit 975bad76 authored by mathieui's avatar mathieui

fix: do not include the nick in affiliation changes

This trips up prosody a bit, and is undefined outside of the member
affiliation.
parent 2b76f72e
Pipeline #3972 passed with stages
in 9 minutes and 19 seconds
......@@ -272,10 +272,12 @@ class MucTab(ChatTab):
return
try:
if affiliation != 'member':
nick = None
await self.core.xmpp['xep_0045'].set_affiliation(
self.jid.bare,
nick=nick,
jid=jid,
nick=nick,
affiliation=affiliation,
reason=reason
)
......
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