fix: missing <retract/> on moderate

This commit is contained in:
mathieui 2022-02-04 19:25:53 +01:00
parent e56930e0a1
commit e344c0c303

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)