Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Option to enable/disable auto away and configure timer

Open rockneverdies55 opened this issue 11 years ago • 28 comments

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.

rockneverdies55 avatar Sep 08 '15 17:09 rockneverdies55

What is the expected behaviour?

rodrigok avatar Sep 08 '15 17:09 rodrigok

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.

rockneverdies55 avatar Sep 08 '15 18:09 rockneverdies55

probably should add an option to enable/disable auto away?

Maysora avatar Sep 08 '15 18:09 Maysora

I don't know if we can detect OS inactivity inside the browser.

The auto away is useful to send mentions via push notification.

rodrigok avatar Sep 08 '15 18:09 rodrigok

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.

geekgonecrazy avatar Sep 08 '15 20:09 geekgonecrazy

maybe 'Set to Away status in [ ] minutes' defaulting to 10 min.

jclabaugh avatar Sep 09 '15 15:09 jclabaugh

agreed :+1:

geekgonecrazy avatar Sep 09 '15 17:09 geekgonecrazy

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?"

jclabaugh avatar Sep 11 '15 00:09 jclabaugh

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.

jclabaugh avatar Sep 11 '15 00:09 jclabaugh

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.

geekgonecrazy avatar Sep 12 '15 20:09 geekgonecrazy

ifvisible.js looks interesting, do you folks think it could be of any use? Demo here

gmsecrieru avatar Oct 20 '15 15:10 gmsecrieru

+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...

klatys avatar May 05 '16 15:05 klatys

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.

joergludwig avatar Apr 24 '17 15:04 joergludwig

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.

freddy70 avatar May 23 '17 11:05 freddy70

+1

StealthMicro avatar Jun 16 '17 17:06 StealthMicro

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: inactive window logging mouse pos 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?

klatys avatar Jul 22 '17 23:07 klatys

+1 Need this very badly to make chat more useful in business environment.

ghost avatar Aug 23 '17 15:08 ghost

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.

screenshot_27

. @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.

armand1m avatar Sep 02 '17 22:09 armand1m

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.

armand1m avatar Sep 02 '17 22:09 armand1m

Hey, I've updated the PR #8029.

Know the tests are all passing, and we have the feature implemented in 4 languages:

  • English (default) captura de tela 2017-12-04 as 23 04 00

  • Portuguese captura de tela 2017-12-04 as 23 04 12

  • Brazilian Portuguese captura de tela 2017-12-05 as 00 42 34

  • Dutch (Nederlands) captura de tela 2017-12-05 as 00 42 23

Here is a GIF demonstrating the feature.

enableautoaway

armand1m avatar Dec 05 '17 15:12 armand1m