Improved last activity recognition

Description

http://community.igniterealtime.org/thread/45068

Here's a patch to query a contact's last acitivty and show the info in the contact pop up, if they're not available. If the contact is away, it will show how long the user has been idle or, if they are offline, when they logged off.

The only issue is Spark/Smack doesn't respond properly, but it would work with clients that handle a last activity query correctly. Spark/Smack does respond, it just resets the idle time on any packet delivery so the information from the contact is not accurate. The Openfire server does respond properly when a user is offline.

relates to Smack-345

Environment

None

Attachments

1
  • 14 Jul 2011, 03:18 AM

is related to

Activity

Show:

Walter Ebeling February 24, 2013 at 9:29 AM

Mass closing of resolved issues

debasish paul September 23, 2012 at 12:48 PM

hi

wroot October 23, 2011 at 5:22 PM

Oh, i get it now. It only works between Smack clients. I thought Spark wasn't getting correct info from the server. I have tried with two Spark clients and i see Idle < 1 min in the popup now.

Tim Jentz October 23, 2011 at 3:09 PM

@wroot, i'll try to reproduce this behavior.

In my tests, the idle info is even shown without the smack patch. But the time you receive from a client running smack without the patch is tendentially wrong because even the answer for the request of the idle time is handled as an activity of the user.

Lemon Yogster October 23, 2011 at 2:54 PM

Yeah, it doesn't work without the Smack patch. That's why in the description it says that Spark (really Smack) doesn't respond properly and that it relates to it Smack patch-345. If the other user had a client that did respond properly, you should see the idle info. If the person was away, I'm surprised it didn't show any idle the first time you hovered or 0 min idle.

Fixed

Details

Priority

Assignee

Reporter

Affects versions

Fix versions

Created July 13, 2011 at 7:47 AM
Updated February 24, 2013 at 9:29 AM
Resolved October 21, 2011 at 4:25 PM

Flag notifications