fix: do not include the nick in affiliation changes
This trips up prosody a bit, and is undefined outside of the member affiliation.
This commit is contained in:
parent
2b76f72e4d
commit
975bad7621
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue