On 8/25/09 6:24 AM, Niklas Gustavsson wrote:
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?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).