Fernando Padilla wrote: > > > On 8/25/09 6:24 AM, Niklas Gustavsson wrote: >> If the client send a full JID, that is true. But, as in the case of >> Smack, the client might not send a "from" attribute at all, in which >> case we will need to figure out a resource anyways (not sure yet what >> the best way is or if the spec says this somewhere). >> >> > Just a question. Isn't it the server's job to add the "from" > attribute? Not the client? So shouldn't Vysper be adding the "from", > when it first receives the stanza on the originating connection?
You are right. And the server does exactly that, but only in case the stanza leaves the session context, and the FROM is no longer trackable from that. Yet often the stanza either never leaves the session context (e.g. disco IQs), or results in new stanza being sent (presence). Bernd
