RocketChat / Rocket.Chat.Electron

Official OSX, Windows, and Linux Desktop Clients for Rocket.Chat
https://rocket.chat/
MIT License
1.6k stars 703 forks source link

Status recognition on system level => away while not activly chatting? #2214

Open chrisi51 opened 3 years ago

chrisi51 commented 3 years ago

Is it correct, that RocketChat as an Electron App is not able to recognize user activity on system wide level so that you are shown as inactive when you are actually working instead of chatting?

What operating system and which version? MacOS in different Versions Which version of Rocket.Chat (Server)? 3.17.0 (were waiting for UCS update) Which version of Rocket.Chat.Electron (Electron/Desktop)? 3.5.7

Steps to reproduce the behavior:

  1. Open Electron RocketChat
  2. put RC in background and work for the configured idle time
  3. get chat from another person that you have to work in homeoffice :)

Expected behavior As im still working but not chatting all the time, i should stay "green" instead of becoming "yellow"

I've checked all the issues in the past what is mostly 2 years ago but the topic was present but im not sure if it should be able now to recognize the activity even in background or not. From my web developer understanding i would guess, thats not even possible to get the activity outside of the electron app.

Would be nice to know if we are talking about a bug or a system limitation as the only way to workarround this would be to turn off the auto-away function.

chrisi51 commented 3 years ago

i tried to test a little arround while auto away set to the lowest value (60 sec) ... on my system it seems to work. I become away status while doing nothing and on moving mouse in any app i become active again.

but for any reason a lot of our users stay "away" even if they talk to me ... even after setting manually to "red" and "green" they stay "yellow" ... only reloading the app helps than.

so maybe system activity is tracked but hangs up from time to time?

ankar84 commented 3 years ago

but for any reason a lot of our users stay "away" even if they talk to me ... even after setting manually to "red" and "green" they stay "yellow" ... only reloading the app helps than.

Confirm that behavior!

jeanfbrito commented 2 years ago

Please test if the problem persists with our latest release. I will be closing the issue but if there is any problem yet, we will open it again.

chrisi51 commented 2 years ago

i did not got any blame for a long time, but just asked activly one of my partners which told me, that the problem is still present ... only way to become green again is to reload the app ... she got M1 macbook if this may be intersting in any way.

me personally don't know the problem on my mac/pc

jeanfbrito commented 2 years ago

I just tested and it works on Windows 10 and M1 MacBook too. What are the versions of the server and the desktop app?

chrisi51 commented 2 years ago

our server version is 3.18.2 (univention ucs) client version is 3.8.11

i also can't reproduce the problem on my imac pro and my M1 aswell ... but some seem to have those problems ... on our side everyone is using macbook pro with Intel/M1 (no windows)

so maybe its more a kind of a problem due to "old installations" ... mixed configurations or rights or something like

jeanfbrito commented 2 years ago

Its hard to say what could be happening. Could you take a case where it get stuck and see if there is any errors on the console log?

The one on View > Open DevTools and the other on Help > Toggle DevTools too.

When stuck if you try to change the status manually it works?