diff options
Diffstat (limited to 'sleekxmpp/stanza')
-rw-r--r-- | sleekxmpp/stanza/message.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sleekxmpp/stanza/message.py b/sleekxmpp/stanza/message.py index c8d54f13..a3f2901c 100644 --- a/sleekxmpp/stanza/message.py +++ b/sleekxmpp/stanza/message.py @@ -4,7 +4,7 @@ from . error import Error from . rootstanza import RootStanza class Message(RootStanza): - interfaces = set(('type', 'to', 'from', 'id', 'body', 'subject')) + interfaces = set(('type', 'to', 'from', 'id', 'body', 'subject', 'groupchat')) types = set((None, 'normal', 'chat', 'headline', 'error', 'groupchat')) sub_interfaces = set(('body', 'subject')) name = 'message' @@ -23,6 +23,8 @@ class Message(RootStanza): def reply(self, body=None): StanzaBase.reply(self) + if self['type'] == 'groupchat': + self['to'] = self['to'].bare del self['id'] if body is not None: self['body'] = body |