Merge branch 'retract-in-groupchats' into 'master'

XEP-0424: fire event even with groupchat messages

See merge request poezio/slixmpp!92
This commit is contained in:
Maxime Buquet 2020-12-13 23:39:12 +01:00
commit a3ca4c11c3

View file

@ -45,7 +45,6 @@ class XEP_0424(BasePlugin):
self.xmpp.plugin['xep_0030'].del_feature(feature=stanza.NS) self.xmpp.plugin['xep_0030'].del_feature(feature=stanza.NS)
def _handle_retract_message(self, message: Message): def _handle_retract_message(self, message: Message):
if message['type'] != 'groupchat':
self.xmpp.event('message_retract', message) self.xmpp.event('message_retract', message)
def send_retraction(self, mto: JID, id: str, mtype: str = 'chat', def send_retraction(self, mto: JID, id: str, mtype: str = 'chat',