Send messages from full JID. Fixes #13.
Messages sent between two Gtalk accounts weren't being received.
This commit is contained in:
parent
c5192f8ade
commit
457a11c54e
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user