Send messages from full JID. Fixes #13.

Messages sent between two Gtalk accounts weren't being received.
This commit is contained in:
JC Brand 2013-08-04 18:31:45 +02:00
parent c5192f8ade
commit 457a11c54e
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ Changelog
0.5.1 (Unreleased)
------------------
- #13: Messages sent between to GTalk accounts weren't being received. [jcbrand]
- #32: Default status was offline when user didn't have contacts. [jcbrand]
- Attach panels to the DOM upon initialize. [jcbrand]

View File

@ -381,7 +381,7 @@
return;
}
}
var message = $msg({from: converse.bare_jid, to: bare_jid, type: 'chat', id: timestamp})
var message = $msg({from: converse.connection.jid, to: bare_jid, type: 'chat', id: timestamp})
.c('body').t(text).up()
.c('active', {'xmlns': 'http://jabber.org/protocol/chatstates'});
// Forward the message, so that other connected resources are also aware of it.