On Mon Apr 20 12:43:02 2009, Jonathan Schleifer wrote:
Wouldn't make it more sense to only get the PEP events of users who are online and get the last event of a user as soon as he signs in? IMO, this would make more sense and this is also how ejabberd handles it.

Well, no, not really.

Lots of "rich presence" states persist even when the user is offline. The <status/> field, for instance, we can even set *when* we go offline, and lots of clients (include Gajim) can make use of this. If I go offline so I can, for example, play games, or because I've gone on holiday, I think that my contacts should get the backdated PEP event telling them so when I'm offline.

And plenty of PEP items unrelated to online/offline state exist, too, so to limit PEP to only cases when the contacts are online is simply broken.

So again, I'd say:

1) The spec says that you get PEP events for ALL contacts, online or not.

2) The spec doesn't say you get events for newly online contacts.

3) Some client mistakenly rely on odd server behaviour, particular in the case of (2).

4) (1) and (2) are not only what the specification says, but also the desired behaviour.

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