Last Activity / Last Activity in Presence

Matthew M
Added over 5 years ago

Hi Tigase team

I wonder if there is any implementation in Tigase server for

  1. Last Activity :

  2. Last Activity in Presence :

(are they overlapping each other?)

It would nice to show the status of each buddy as "Active 4 minutes ago", which provided by Facebook Messenger. Is it supported by XMPP?


Replies (3)

Added by Wojciech Kapcia TigaseTeam over 5 years ago

Right now there is preliminary implementation of XEP-0012, i.e. Last Acivity, but it causes some problems and it's not turned on by default (please see: #163). You can try to enable it by adding +jabber:iq:last to your --sm-plugins

Added by Matthew M over 5 years ago

Thanks for the information. I see there is an issue in ticket #163 "Switching on last-activity on caused all packets to be sent 4 times, messages, presences, etc...." Is this still a problem?

By the way, I see there are fields in DB table of "tig_users", such as last_login, last_logout, online_status, failed_logins, account_status, but those fields are never updated. Are they still useful? I was thinking to derive some sort of "Last Activity" from these values. Thanks!

Added by Wojciech Kapcia TigaseTeam over 5 years ago

I'm afraid it may still be an issue.

Actually those fields are updated (well, depends on the AuthConnector you use). last_login@, @last_logout and failed_logins are most certainly valid; online_status may be a bit misleading as it doesn't work correctly due to disconnects caused by network failure; account_status is used to control whether account is enabled or disabled.