2009/7/2 Marcus Lundblad <[email protected]>: > ons 2009-07-01 klockan 15:56 -0600 skrev Peter Saint-Andre: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> On 7/1/09 3:51 PM, Peter Saint-Andre wrote: >> > XEP-0256 talks about including last activity in auto-away notifications, >> > which means "I'm away at this resource and I was last active at time T." >> > >> > Another possible use case is including last activity in initial >> > presence, which would mean "I'm newly online and I was last online from >> > this resource at time T." >> > >> > The attraction here is that pubsub and PEP nodes to which you subscribe >> > might be able to optimize item delivery (e.g., by sending you only the >> > items that were published after you went offline the last time, give or >> > take a few minutes). The same might be true of MUC room history (I am >> > growing tired of receiving messages from yesterday when I join a quiet >> > room). >> >> http://xmpp.org/extensions/tmp/xep-0256-1.1.html > > This would kinda break the way I interpreted 0256. > That way, if say the client goes idle, it'll send an updated presense > with a "last" with seconds='300'. > Then later the client looses its connection with the server, after say > an hour, then a minute later goes online again (still idle). Now the > initial presence will have a "last" with seconds='3960' (give or take a > few seconds. > This does not mean it was last online over an hour ago, it was online a > minute ago (though being idle). >
I'd suggest that the last activity in initial presence again means just last activity. Contact doesn't really need to know whether it was last online time or last mouse movement.
