Merge branch 'fix-moderation-bug' into 'master'

fix: missing <retract/> on moderate

See merge request poezio/slixmpp!180
This commit is contained in:
mathieui 2022-02-04 23:06:41 +01:00
commit 33efbd4d7b

View file

@ -44,4 +44,5 @@ class XEP_0425(BasePlugin):
iq = self.xmpp.make_iq_set(ito=room.bare, ifrom=ifrom)
iq['apply_to']['id'] = id
iq['apply_to']['moderate']['reason'] = reason
iq['apply_to']['moderate'].enable('retract')
await iq.send(**iqkwargs)