On Tue Feb 14 04:09:45 2012, Peter Saint-Andre wrote:
On 1/24/12 2:58 PM, Dave Cridland wrote:
> I recall - ages ago - that we were going to, at one point, mention that > if you change your nickname, you should send unavailable persence after
> the change to the old nick:
>
> C: <presence to='room@service/new_nick'/>
> S: <presence from='room@service/old_nick'
> type='unavailable'>...110/303...</presence>
> S: <presence from='room@service/new_nick'/>
> C: <presence to='room@service/old_nick' type='unavailable'/>
>
> The problem being that currently, the server must track directed
> presence, and so if you change your nickname, the server keeps tracking > the old nickname too - and will eventually have to send an unavailable
> anyway.

Well, the server could do that immediately (when it accepts the nick
change), no?

No, your server has no real idea it *is* a nick change, without tracking a lot more.

1) user@A joins room@B as nickname N1

<presence from='user@A/resource' to='room@B/N1'/>

- A now tracks directed presence to room@B/N1

2) user@A changes nickname to N2

<presence from='user@A/resource' to='room@B/N2'/>

- A now additionally tracks directed presence to room@B/N2

3) user@A leaves chatroom.

<presence from='user@A/resource' to='room@B/N2' type='unavailable'/>

- A now stops tracking room@B/N2

4) user@A drops offline.

<presence from ='user@A/resource' type='unavailable'/>

- A now sends unavailable presence to room@B/N1

Dave.
--
Dave Cridland - mailto:[email protected] - xmpp:[email protected]
 - acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/
 - http://dave.cridland.net/
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade

Reply via email to