Commit 457a11c5 authored by JC Brand's avatar JC Brand

Send messages from full JID. Fixes #13.

Messages sent between two Gtalk accounts weren't being received.
parent c5192f8a
......@@ -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]
......
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment