Hi Joe, thanks for the reply!
On Fri, Dec 14, 2007 at 07:09:26AM -0800, Joe Hildebrand wrote: > > On Dec 12, 2007, at 7:04 AM, Robin Redeker wrote: > >Ok, I have another question: > > > >We have: Contact A with one resource (resource is 'res1'): > > > > [EMAIL PROTECTED]/res1 > > > >And Contact B with two resources: > > > > [EMAIL PROTECTED]/res1 priority 20 > > Assume you mean contact_b. Yes, indeed :) > > > [EMAIL PROTECTED]/res2 priority 10 > > > >They are not subscribed to each other and do NOT share any presence > >information. > > Even directed presence? The cool side effect of sending a directed > presence is that everyone to whom you have sent directed presence will > get an unavail when you go offline. Yes, even directed presence not. I know that directed presence makes things easier in this case, but I assume here that there are still clients and people that don't do or don't want to send the presence. [.snip.] > >Should he make a second 'chat session', which is probably not very > >intuitive for the user because he just wanted to talk to contact B and > >when he got two options to send the message, what should he do (he > >doesn't even know which resource is the 'right' one, or whether 'res1' > >maybe went offline)? > > You're correct that there shouldn't be a new visible session. There > were clients that did that back in the day (or with each new thread!) > and it turned out to be pretty confusing. You should just rebind to > the new resource. Ok, that also makes things easier in the code. > >What if they share presence, should contact A's client determine from > >the highest priority resource where the message should go to? > > Absolutely not. You should just unbind at least when res1 goes > offline, and perhaps whenever you get a presence change from > contact_b. Keep in mind that b's server might be doing much more > sophisticated "most available" calculations. But what if contact B first replied from the resource 1 and also sent a directed presence to contact A, _and_ then changes to resource 2 to talk to contact A, should contact A rebind (I would guess that would make sense)? > Alternate question: What if contact_b's server is using RAP > (XEP-168)? Then contact_a can know what the new most available > resource is? My answer to that is that if the resource contact_a is > bound to was the primary resource, and now isn't, you should unbind, > otherwise not. Well, what in the case I explained in my last paragraph (about contact B, who changes the resource without changing presence settings)? Should contact A still send to the primary resource or still rebind to the last resource he got a message from? Sorry for my complicated and very technical questions, I just want to get it right :) Thanks for your time! Robin -- Robin Redeker | Deliantra, the free code+content MORPG [EMAIL PROTECTED] / [EMAIL PROTECTED] | http://www.deliantra.net http://www.ta-sa.org/ |
