[OTR-dev] ConnContext.username in XMPP

Ian Goldberg ian at cypherpunks.ca
Sun Jun 22 17:39:59 EDT 2008


On Sun, Jun 22, 2008 at 05:25:00PM +0200, Jonathan Schleifer wrote:
> Kjell Braden <fnord at pentabarf.de> wrote:
> 
> > Now the local user receives the message and creates a context for
> > "user at server.tld/resource". But since the local user does not know
> > about any resources, the messages he sends have to be sent to
> > "user at server.tld".
> 
> Not exactly. That's no problem at all. If you receive a message from a
> resource, you can very well answer to that resource.
> The problem you'll get is when you first send a message, don't know the
> resource and thus send to the bare JID, but get an answer from the full
> JID.

In particular, the OTR Query message (the "?OTR?v2?") will be send to
the un-resourced address, but you'll get back the Commit Message from
the resourced address, and all will be well, I'd think.

   - Ian



More information about the OTR-dev mailing list