XEP-0424: fire event even with groupchat messages

This commit is contained in:
mathieui 2020-12-13 22:48:17 +01:00
parent 0b2594aa2c
commit 489e419e38

View file

@ -45,8 +45,7 @@ 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',
include_fallback: bool = True, include_fallback: bool = True,