core (xmpp): set "to" attribute to <message> element when it's missing:
when missing, profile's full jid is used as "to" attribute. This way, "to" attribute can be retrieved later without having to check if it has been set or not.
This commit is contained in:
parent
575b5dd126
commit
97d655682c
1 changed files with 4 additions and 0 deletions
|
|
@ -867,6 +867,10 @@ class SatMessageProtocol(xmppim.MessageProtocol):
|
|||
.format(xml=message_elt.toXml())))
|
||||
|
||||
client = self.parent
|
||||
|
||||
if not message_elt.hasAttribute(u'to'):
|
||||
message_elt['to'] = client.jid.full()
|
||||
|
||||
message = {}
|
||||
subject = {}
|
||||
extra = {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue