Just send stanza as is, no?
You don't need any custom elements, all data is already there.
_______________________________________________
JDev mailing list
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: JDev-uns...@jabber.org
_______________________________________________
Message Carbons - http://xmpp.org/extensions/xep-0280.html - are a way
of having all available resources notified of all incoming and
outgoing messages. I don't know how extensive support for this is yet.
/K
user1/resource1 sends the message:
<message to='user2' type='chat'><body>blah</body></body></message>
user1/resource2 gets the notification:
<message to='user2' type='chat'><body>blah</body></body></message>
You do not need to look for differences b/w these two - they are
identical. Or, to be a bit more proactive, you can actually add a
'from' field - i.e. send message to second resource not 'as it was
received [from user1]' but 'as it was sent [to user2]'.
You are stumbled upon the false idea that recipient MUST see his
address in the 'to' field. He needs that not, check how email (Cc:)
works.
On the other hand, if there is already XEP for this exact purpose, you
probably much better off following it - it will provide compartibility
with future clients, you will be among first adopters and your
client/server will be used as a reference implementation.
If you're going to be writing new code for the server, much better to
implement this the Right way and do Carbons, surely?
Sending stanzas with the wrong to= is very much not the appropriate
thing to be doing here.
/K
- m&m
<http://goo.gl/LK55L>