Option to enable/disable auto away and configure timer
Rocket.Chat keeps user status as Online only if user is actively using chat window or if chat window is hovered via mouse.
Otherwise, user status falls onto Away...
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
What is the expected behaviour?
User status shouldn't be determined based on the interaction with the chat window.
User is online as long as she/he's logged in to rocket.chat and doing something on the computer. No activity with OS at all for a predefined time (can be set by Admins) should make user Away.
probably should add an option to enable/disable auto away?
I don't know if we can detect OS inactivity inside the browser.
The auto away is useful to send mentions via push notification.
maybe an option to choose how long before auto away. The only place detecting if they are truely away is in the Rocket.Chat desktop app.
maybe 'Set to Away status in [ ] minutes' defaulting to 10 min.
agreed :+1:
might check out https://atmospherejs.com/dpid/user-presence for inspiration (advanced settings stuff)? Since the app is browser-based, it is harder than Slack's desktop client to set user presence accurately but there might be a cludge idea somewhere that gets you closer to replicating that by adding a user-defined delay period.
We have had UX issues currently with people going "I'm at my computer, I am just not typing in the app right this sec, why is it setting me to 'away' already?"
I think Slack actually does a non-standard implementation of user presence, contrary to the likes of Skype or any IM client... If the app is open, you are 'online', regardless of any of your activity in the app. If the app is not open or your computer is asleep/off, you are 'offline.' You say you are 'away' by manually setting your status by clicking 'Set yourself away'. So its detecting a binary presence state, kind of.
https://developers.google.com/web/updates/2015/08/27/using-requestidlecallback
Ran across this during my perusing of the interwebs. Looks like it might be of use here.
ifvisible.js looks interesting, do you folks think it could be of any use? Demo here
+1 on this. This also causes sending mobile notifications eventhough you are active on a computer (but not in RC window) which is quite annoying.
I found Robot.js's getMousePos which could check/detect mouse position change. Detecting keypresses is (for obvious reasons) probably an issue, but if there wasn't any other way. Mouse might at least partially fix this...
I'm not really fluent with electron, but was wondering - if it was somehow working the same way the cordova does then maybe some sort of plugin might do the trick...
We switched to Rocket.Chat for communication in our company. Every user runs the desktop app on his computer. It would be very useful if we could see, who is working at his computer and who is not at his desk. In the past we used Pidgin with an XMPP server, which did this well.
Rocket.Chat should switch a user to "away", if he does not move the mouse for 5 minutes, and switch back to "online", as soon as he is active again. If Rocket.Chat could detect, if the screen is locked, this would work as well.
I just posted a $200 bounty on Bountysource for this issue.
Hi all I'm in the same situation and I have the same need as joergludwig. I installed the desktop app on several computers in my company. I would like to have a "green" status when user is working on his computer and "orange" status when user stop moving his mouse or screen locked. Do you know if this feature will be implemented ? Thanks a lot for your feedback.
+1
Hi, like I suggested earlier, I tried tinkering with robot.js, since it's for a electron apps (or if I get it correctly requires actual app - means it won't work in browser) I used it in Rocket.Chat.Electron and it seems to work:
Now I'm not that fluent in how the client works with rocket.chat instance, I suppose it might send some sort of info regarding user status to server which would process that. Could someone from @RocketChatApp point me in the right direction?
+1 Need this very badly to make chat more useful in business environment.
Hi, I've started implementing this feature, but I'm in doubt in certain situations:
This feature involves not only the actual online/away user but the whole team that this user belongs, so I'm in doubt if this must be in the "My Account" preferences for each user to configure its own Idle Time Limit, or in another place.

. @rockneverdies55 has said:
No activity with OS at all for a predefined time (can be set by Admins) should make user Away.
For me, it should be configured per User in the "My Account" preferences, and each user should use this responsibly, but what @rockneverdies55 sad also makes sense to me, even more if some companies are running this as the main communication channel and needs this kind of control.
Just want to know most people's opinion about this. By now, I'm creating it as the screenshot shows.
For now, I'm not willing to change the way Rocket Chat handles User Presence, I'm just creating the option to enable the auto away and change the Idle Time Limit if enabled.
Hey, I've updated the PR #8029.
Know the tests are all passing, and we have the feature implemented in 4 languages:
-
English (default)

-
Portuguese

-
Brazilian Portuguese

-
Dutch (Nederlands)

Here is a GIF demonstrating the feature.
