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
This commit is contained in:
parent
abd3f40e96
commit
78b42bdbbe
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ class Message(RootStanza):
|
||||||
"""
|
"""
|
||||||
new_message = StanzaBase.reply(self, clear)
|
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['to'] = new_message['to'].bare
|
||||||
|
|
||||||
new_message['thread'] = self['thread']
|
new_message['thread'] = self['thread']
|
||||||
|
|
Loading…
Reference in a new issue