From 78b42bdbbedf88ec470c5e702d5a0180160c26bf Mon Sep 17 00:00:00 2001 From: nicoco Date: Thu, 23 Feb 2023 20:28:31 +0100 Subject: [PATCH] Message.reply(): do not use bare jid if component Components are likely to be MUC services more than muc participants, and reply() is used when XMPPError is raised, where it makes no sense to strip the resource --- slixmpp/stanza/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slixmpp/stanza/message.py b/slixmpp/stanza/message.py index eda11df6..a522c50a 100644 --- a/slixmpp/stanza/message.py +++ b/slixmpp/stanza/message.py @@ -176,7 +176,7 @@ class Message(RootStanza): """ new_message = StanzaBase.reply(self, clear) - if self['type'] == 'groupchat': + if not getattr(self.stream, "is_component", False) and self['type'] == 'groupchat': new_message['to'] = new_message['to'].bare new_message['thread'] = self['thread']