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:
mathieui 2021-06-25 21:49:32 +02:00
parent 2b76f72e4d
commit 975bad7621

View file

@ -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
)